diff options
author | Sai Prakash Ranjan <quic_saipraka@quicinc.com> | 2022-05-18 19:44:13 +0300 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2022-06-15 18:41:12 +0300 |
commit | 98692f52c588225034cbff458622c2c06dfcb544 (patch) | |
tree | b9d294ccb3c01512f9a81eaf3ceace3b574b64c4 /lib/locking-selftest-spin.h | |
parent | 443685992bda9bb4f8b17fc02c9f6c60e62b1461 (diff) | |
download | linux-98692f52c588225034cbff458622c2c06dfcb544.tar.xz |
drm/meson: Fix overflow implicit truncation warnings
Fix -Woverflow warnings for drm/meson driver which is a result
of moving arm64 custom MMIO accessor macros to asm-generic function
implementations giving a bonus type-checking now and uncovering these
overflow warnings.
drivers/gpu/drm/meson/meson_viu.c: In function ‘meson_viu_init’:
drivers/gpu/drm/meson/meson_registers.h:1826:48: error: large integer implicitly truncated to unsigned type [-Werror=overflow]
#define VIU_OSD_BLEND_REORDER(dest, src) ((src) << (dest * 4))
^
drivers/gpu/drm/meson/meson_viu.c:472:18: note: in expansion of macro ‘VIU_OSD_BLEND_REORDER’
writel_relaxed(VIU_OSD_BLEND_REORDER(0, 1) |
^~~~~~~~~~~~~~~~~~~~~
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Sai Prakash Ranjan <quic_saipraka@quicinc.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'lib/locking-selftest-spin.h')
0 files changed, 0 insertions, 0 deletions