From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755686AbdJJAE7 (ORCPT ); Mon, 9 Oct 2017 20:04:59 -0400 Received: from mail-pf0-f180.google.com ([209.85.192.180]:52561 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755507AbdJJAE6 (ORCPT ); Mon, 9 Oct 2017 20:04:58 -0400 X-Google-Smtp-Source: AOwi7QC/4pqr7Oe2V+UOze+FYbfJ16Yj26e0eLuYyWM3JtEfPOTfu8/Ip1PF/zHwG7Qpe4WXBCiWrw== From: Matthias Kaehlcke To: Greg Kroah-Hartman , Jiri Slaby Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Guenter Roeck , Matthias Kaehlcke Subject: [PATCH] serial: sh-sci: Remove __init attribute from static struct 'port_cfg' Date: Mon, 9 Oct 2017 17:04:11 -0700 Message-Id: <20171010000411.140016-1-mka@chromium.org> X-Mailer: git-send-email 2.14.2.920.gcf0c67979c-goog Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/tty/serial/sh-sci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 784dd42002ea..0d1df1df9e89 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -3244,7 +3244,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; static int __init early_console_setup(struct earlycon_device *device, int type) -- 2.14.2.920.gcf0c67979c-goog