OpenCloudOS-Kernel/drivers/gpu/drm/r128
Borislav Petkov 6556551f88 drm/r128: Fix undefined behavior due to shift overflowing the constant
Fix:

  drivers/gpu/drm/r128/r128_cce.c: In function ‘r128_do_init_cce’:
  drivers/gpu/drm/r128/r128_cce.c:417:2: error: case label does not reduce to an integer constant
    case R128_PM4_64BM_64VCBM_64INDBM:
    ^~~~
  drivers/gpu/drm/r128/r128_cce.c:418:2: error: case label does not reduce to an integer constant
    case R128_PM4_64PIO_64VCPIO_64INDPIO:
    ^~~~

See https://lore.kernel.org/r/YkwQ6%2BtIH8GQpuct@zn.tnic for the gory
details as to why it triggers with older gccs only.

Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220405151517.29753-5-bp@alien8.de
2022-05-21 18:02:47 +02:00
..
Makefile drm/r128: make ATI PCI GART part of its only user, r128 2019-11-20 11:09:05 +02:00
ati_pcigart.c Linux 5.15-rc7 2021-10-28 14:59:38 +10:00
ati_pcigart.h drm/r128: make ATI PCI GART part of its only user, r128 2019-11-20 11:09:05 +02:00
r128_cce.c drm: IRQ midlayer is now legacy 2021-08-10 20:14:01 +02:00
r128_drv.c drm/r128: Remove references to struct drm_device.pdev 2021-05-03 19:48:27 +02:00
r128_drv.h drm/r128: Fix undefined behavior due to shift overflowing the constant 2022-05-21 18:02:47 +02:00
r128_ioc32.c drm/r128/r128_ioc32: Fix formatting issues in 'r128_compat_ioctl()'s header 2021-01-18 15:41:04 +01:00
r128_irq.c drm/r128: drop use of drmP.h 2019-07-17 12:52:55 +02:00
r128_state.c drm/r128: Remove references to struct drm_device.pdev 2021-05-03 19:48:27 +02:00