summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sh-sci.c
diff options
context:
space:
mode:
authorMatthias Kaehlcke <mka@chromium.org>2017-10-09 18:26:22 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-20 13:57:37 +0200
commitdd076cffb8cd675a8973fc9b6cea0c04be6f0111 (patch)
tree42dec3df895d11dc1f0ea160c588135e84124850 /drivers/tty/serial/sh-sci.c
parent6e605a01501b20ba8ace196536899195c8d296f5 (diff)
downloadop-kernel-dev-dd076cffb8cd675a8973fc9b6cea0c04be6f0111.zip
op-kernel-dev-dd076cffb8cd675a8973fc9b6cea0c04be6f0111.tar.gz
serial: sh-sci: Fix init data attribute for struct 'port_cfg'
The __init attribute is meant to mark functions, use __initdata instead for the data structure. This fixes the following error when building with clang: drivers/tty/serial/sh-sci.c:3247:15: error: '__section__' attribute only applies to functions, methods, properties, and global variables static struct __init plat_sci_port port_cfg; Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Reviewed-by: Guenter Roeck <groeck@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/sh-sci.c')
-rw-r--r--drivers/tty/serial/sh-sci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
index c4af4c4..d5714de 100644
--- a/drivers/tty/serial/sh-sci.c
+++ b/drivers/tty/serial/sh-sci.c
@@ -3273,7 +3273,7 @@ early_platform_init_buffer("earlyprintk", &sci_driver,
early_serial_buf, ARRAY_SIZE(early_serial_buf));
#endif
#ifdef CONFIG_SERIAL_SH_SCI_EARLYCON
-static struct __init plat_sci_port port_cfg;
+static struct plat_sci_port port_cfg __initdata;
static int __init early_console_setup(struct earlycon_device *device,
int type)
OpenPOWER on IntegriCloud