Re: [PATCH] matroxfb: avoid -Warray-bounds warning

2020-10-26 Thread Thomas Zimmermann
Hi Am 26.10.20 um 20:39 schrieb Arnd Bergmann: > From: Arnd Bergmann > > 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 out

[PATCH] matroxfb: avoid -Warray-bounds warning

2020-10-26 Thread Arnd Bergmann
From: Arnd Bergmann 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]