Commit 8ba0f967 authored by kernel test robot's avatar kernel test robot Committed by Greg Kroah-Hartman

tty: max310x: fix flexible_array.cocci warnings

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

Fixes: 10d8b34a ("serial: max310x: Driver rework")
CC: Denis Efremov <efremov@linux.com>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarJulia Lawall <julia.lawall@inria.fr>
Link: https://lore.kernel.org/r/alpine.DEB.2.22.394.2103091516020.2892@hadrienSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b9edc682
...@@ -273,7 +273,7 @@ struct max310x_port { ...@@ -273,7 +273,7 @@ struct max310x_port {
#ifdef CONFIG_GPIOLIB #ifdef CONFIG_GPIOLIB
struct gpio_chip gpio; struct gpio_chip gpio;
#endif #endif
struct max310x_one p[0]; struct max310x_one p[];
}; };
static struct uart_driver max310x_uart = { static struct uart_driver max310x_uart = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment