linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: fix flexible_array.cocci warnings
@ 2021-11-27 18:01 Julia Lawall
  2021-12-02  1:35 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Julia Lawall @ 2021-11-27 18:01 UTC (permalink / raw)
  To: Joey Gouly
  Cc: kbuild-all, linux-kernel, Linus Walleij, Stan Skowronek,
	Marc Zyngier, linux-gpio, linux-kernel

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>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   c5c17547b778975b3d83a73c8d84e8fb5ecf3ba5
commit: a0f160ffcb83de6a04fa75f9e7bdfe969f2863f7 pinctrl: add pinctrl/GPIO driver for Apple SoCs
:::::: branch date: 21 hours ago
:::::: commit date: 5 weeks ago

 pinctrl-apple-gpio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 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))

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] pinctrl: fix flexible_array.cocci warnings
  2021-11-27 18:01 [PATCH] pinctrl: fix flexible_array.cocci warnings Julia Lawall
@ 2021-12-02  1:35 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2021-12-02  1:35 UTC (permalink / raw)
  To: Julia Lawall
  Cc: Joey Gouly, kbuild-all, linux-kernel, Stan Skowronek,
	Marc Zyngier, linux-gpio

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-02  1:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-27 18:01 [PATCH] pinctrl: fix flexible_array.cocci warnings Julia Lawall
2021-12-02  1:35 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).