Message ID | alpine.DEB.2.22.394.2111271859250.2864@hadrien |
---|---|
State | New |
Headers | show |
Series | pinctrl: fix flexible_array.cocci warnings | expand |
On Sat, Nov 27, 2021 at 7:01 PM Julia Lawall <julia.lawall@inria.fr> wrote: > From: kernel test robot <lkp@intel.com> > > Zero-length and one-element arrays are deprecated, see > Documentation/process/deprecated.rst > Flexible-array members should be used instead. > > Generated by: scripts/coccinelle/misc/flexible_array.cocci > > CC: Joey Gouly <joey.gouly@arm.com> > Reported-by: kernel test robot <lkp@intel.com> > Signed-off-by: kernel test robot <lkp@intel.com> > Signed-off-by: Julia Lawall <julia.lawall@inria.fr> Patch applied! Yours, Linus Walleij
--- a/drivers/pinctrl/pinctrl-apple-gpio.c +++ b/drivers/pinctrl/pinctrl-apple-gpio.c @@ -36,7 +36,7 @@ struct apple_gpio_pinctrl { struct pinctrl_desc pinctrl_desc; struct gpio_chip gpio_chip; struct irq_chip irq_chip; - u8 irqgrps[0]; + u8 irqgrps[]; }; #define REG_GPIO(x) (4 * (x))