mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
drm/hisilicon/kirin: Fix MASK(32) on 32bit architectures
BIT(32) is illegal when sizeof(long)==4. Use BIT_ULL(32) instead. Cc: Xinliang Liu <xinliang.liu@linaro.org> Cc: Tian Tao <tiantao6@hisilicon.com> Cc: Xinwei Kong <kong.kongxinwei@hisilicon.com> Cc: Sumit Semwal <sumit.semwal@linaro.org> Cc: Yongqin Liu <yongqin.liu@linaro.org> Cc: John Stultz <jstultz@google.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240408170426.9285-11-ville.syrjala@linux.intel.com Acked-by: John Stultz <jstultz@google.com>
This commit is contained in:
parent
e34a7238bd
commit
6d46a50934
|
|
@ -10,7 +10,7 @@
|
|||
/*
|
||||
* ADE Registers
|
||||
*/
|
||||
#define MASK(x) (BIT(x) - 1)
|
||||
#define MASK(x) (BIT_ULL(x) - 1)
|
||||
|
||||
#define ADE_CTRL 0x0004
|
||||
#define FRM_END_START_OFST 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user