linux-stable/drivers/video/fbdev/matrox
Arnd Bergmann 4dfec0d1d7 matroxfb: avoid -Warray-bounds warning
The open-coded list_for_each_entry() causes a harmless warning:

drivers/video/fbdev/matrox/matroxfb_base.c: In function 'matroxfb_register_driver':
include/linux/kernel.h:856:3: warning: array subscript -98 is outside array bounds of 'struct list_head[1]' [-Warray-bounds]

Use the normal list_for_each_entry instead.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20201026194010.3817166-1-arnd@kernel.org
2020-10-27 07:56:19 +01:00
..
g450_pll.c video: fbdev: matroxfb: remove dead code and set but not used variable 2020-04-08 12:09:10 +02:00
g450_pll.h
i2c-matroxfb.c video: fbdev: matrox: convert to i2c_new_scanned_device 2019-11-28 17:19:20 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
matroxfb_accel.c
matroxfb_accel.h
matroxfb_base.c matroxfb: avoid -Warray-bounds warning 2020-10-27 07:56:19 +01:00
matroxfb_base.h fbdev: matrox: fix -Wextra build warnings 2020-03-20 14:29:09 +01:00
matroxfb_crtc2.c video: constify fb ops across all drivers 2019-12-05 10:57:53 +02:00
matroxfb_crtc2.h
matroxfb_DAC1064.c
matroxfb_DAC1064.h
matroxfb_g450.c
matroxfb_g450.h
matroxfb_maven.c treewide: Remove uninitialized_var() usage 2020-07-16 12:35:15 -07:00
matroxfb_maven.h
matroxfb_misc.c fbdev: matrox: make array wtst_xlat static const, makes object smaller 2020-01-03 14:27:47 +01:00
matroxfb_misc.h
matroxfb_Ti3026.c
matroxfb_Ti3026.h