From c6a6aac763aa320a3ed810041e0f1dc7ab77b30f Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Fri, 2 Aug 2024 14:30:32 -0700 Subject: [PATCH] gpio-button-hotplug: use flexible array member zero length arrays are deprecated. Fixes coccinelle warning: WARNING use flexible-array member instead Signed-off-by: Rosen Penev Link: https://github.com/openwrt/openwrt/pull/16848 Signed-off-by: Robert Marko --- package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c index 1dd0ff2a1a..52346c25d9 100644 --- a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c +++ b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c @@ -302,7 +302,7 @@ struct gpio_keys_button_dev { struct device *dev; struct gpio_keys_platform_data *pdata; - struct gpio_keys_button_data data[0]; + struct gpio_keys_button_data data[]; }; static void gpio_keys_polled_queue_work(struct gpio_keys_button_dev *bdev) -- 2.30.2