Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fbdev: amifb: Replace zero-length arrays with DECLARE_FLEX_ARRAY() helper

Replacing zero-length arrays with C99 flexible-array members
because they are deprecated. Use the new DECLARE_FLEX_ARRAY()
auxiliary macro instead of defining a zero-length array.

This fixes warnings such as:
./drivers/video/fbdev/amifb.c:690:6-10: WARNING use flexible-array member instead

Signed-off-by: Atul Raut <rauji.raut@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Atul Raut and committed by
Helge Deller
43a1120c 5d0c230f

+1 -1
+1 -1
drivers/video/fbdev/amifb.c
··· 687 687 __u16 height; 688 688 __u16 xspot; 689 689 __u16 yspot; 690 - __u8 data[1]; /* field with [height][width] */ 690 + DECLARE_FLEX_ARRAY(__u8, data); /* field with [height][width] */ 691 691 }; 692 692 693 693 struct fb_cursorstate {