Sai Prakash Ranjan 588e52fbc3 drm/meson: Fix overflow implicit truncation warnings
[ Upstream commit 98692f52c588225034cbff458622c2c06dfcb544 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-25 11:45:41 +02:00
..
2022-03-28 12:41:28 -07:00
2022-06-09 10:27:49 +02:00
2022-04-25 11:17:45 +02:00
2022-02-07 16:35:35 -08:00
2022-02-25 05:50:18 +10:00
2022-08-25 11:45:06 +02:00
2021-10-28 14:59:38 +10:00
2022-04-25 11:17:45 +02:00
2022-03-28 12:41:28 -07:00
2022-04-07 11:31:52 +02:00
2022-04-25 10:18:52 +03:00
2022-02-07 16:35:35 -08:00
2022-02-25 05:50:18 +10:00
2022-03-16 09:36:13 +01:00
2022-03-24 16:19:43 -07:00
2022-02-07 16:35:35 -08:00
2022-05-04 14:09:34 +02:00
2022-04-12 09:27:20 +03:00
2022-02-28 14:57:14 +10:00
2021-11-30 09:41:28 +01:00
2021-10-01 15:55:47 +02:00
2021-11-30 09:41:28 +01:00
2022-02-07 16:35:35 -08:00
2022-02-25 05:50:18 +10:00
2022-04-12 09:27:20 +03:00