From: Rosen Penev Date: Fri, 2 Aug 2024 21:30:32 +0000 (-0700) Subject: gpio-button-hotplug: use flexible array member X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c6a6aac763aa320a3ed810041e0f1dc7ab77b30f;p=openwrt%2Fopenwrt.git 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 --- 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)