From patchwork Tue Feb 20 16:24:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10230431 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C8C6B60392 for ; Tue, 20 Feb 2018 16:26:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B781F2875B for ; Tue, 20 Feb 2018 16:26:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ABC8B2876C; Tue, 20 Feb 2018 16:26:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 238A92875B for ; Tue, 20 Feb 2018 16:26:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=jXnrgP35SL4buNtLLocKHEbwqr1IkD7kvtgaxtwCADk=; b=G8houCeusqwZznwpez+IdDagZo UQruHRVtoxXnrpsWdaghMLkJC247CTeE+zFsYA0jWmz8eCzOgCC9OIA2DWZISf6FPaRaevcB8Q83i Yr7TY+zXG4s60mpkPUBy5VJEUrVtfeKEeNDDwJ+ZbGcbLkB5rQQRFrcTZrbB0dxb/gTsAEJrsOyus QOzs8miWtBrmHQ7c+lv85WilvHchPxiR+WmKen+K/pSMsv/G0s0T5zG1YhN+xhXKQMEtZg377hscO OO/QYZqJxmnBySnzlrWPVodss9RkHppsAJXOG/+Jk6LnCAzYIFn5AYL6UJGiyCukqZ0bBxlOaCEcO WmZ59GIw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eoAkE-0000tJ-3v; Tue, 20 Feb 2018 16:26:18 +0000 Received: from mout.kundenserver.de ([212.227.17.24]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eoAjs-0000Or-Lo for linux-arm-kernel@lists.infradead.org; Tue, 20 Feb 2018 16:26:02 +0000 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0MaaU5-1f3ldm245J-00K930; Tue, 20 Feb 2018 17:25:35 +0100 From: Arnd Bergmann To: arm@kernel.org, Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement Subject: [PATCH 2/3] ARM: orion: mark orion_ge00_mvmdio_bus_name as const Date: Tue, 20 Feb 2018 17:24:51 +0100 Message-Id: <20180220162519.1498223-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180220162519.1498223-1-arnd@arndb.de> References: <20180220162519.1498223-1-arnd@arndb.de> X-Provags-ID: V03:K0:y6y0pFvKhmcpMzBWGo5aUobC/UXYRncYa2LJLwxocd2iLzciV+r Xt3q9ejrOyjfxAOpkvvkhCvbiLNTx1Cw/51UcYYb18jUjwwEl1zYg76on6bATgXrVlmszIZ 5JLx349tv1C/1bCEznJteLb9hvy7+KiUxtptiuHjv5OHAEdJyh026cOxITjMOxYzmq5gLTH xWFZHjfoL1CoxKBscteCg== X-UI-Out-Filterresults: notjunk:1; V01:K0:z+TE90QItLg=:RVlJOrF6vWp9zIcftvg6Qx nv5K7fAC5Rtn68UURW2ddUoaIB8NsLxHu6cYgfBDSeA/XOjiebCsG/SSMIM7f6yDqPPAHL4W1 7hYTaLouND8Awgu4Bn/q1y46w1rCl1xTDWM4rg5v9s8D1nyAad6gBmfP0IGOlumU7+frYfJ3D S3wuAEjxjDlTcei4+1wFgcdkRYpBMXb4xTYxB7Ajibcbo5oDElahuAqaTIh7sDxyCd2Kh9onr wZVN1xi87eyXpys/6OR/njja34YkdxLiF2agT3dczx6xrzO1aDaMJNOq3tdf4TgEZ0WFzdOdN 01Iun9522XW09sKtvhdGaiWYCo5AT+WVdkiBcf/kLt0qjnBRPUEoxxMSYDdRZ6mWGZQPaKt7L 4Cp9V3pO9ZlKcuy50zQPH1ZlpmKSBPgZKuV/XbmsfDgOSVDig+aAO8BWKsh23Vwq5sYxHEhzA RAUxz6BsIsK9OGV93GyqxvLH5kci60qfOb9YYoobnjksgsPxcIuBFs6rqUKZta30aSevcsmSF i+XqyG3opWcRKXXbtd/5rH5M7x4BTVG9SG9Ebu5RRhGABGiJQFEkvaM+rdeCIHYQWudwA5eTi Nqu8IZhMwteof7BjOKe05IYzgL3LKJoP+I5IMh0XbLrDVAmJwdMmuuhSDwJnrgVVxMy6Kxrs4 JjxwAOBZcqDGFFNwPete3CAgAxZ3BN6GIHkGXyWVtZUx9BpvHyg4XCsBDj9VIN1Ux9B0D26sb JmaoOj70OgwLIVOdOtD6ZBt5Y/xNsbbdAe0Luw== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180220_082557_167092_F3548915 X-CRM114-Status: GOOD ( 10.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, Russell King , Arnd Bergmann , linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP A section type mismatch warning shows up when building with LTO, since orion_ge00_mvmdio_bus_name was put in __initconst but not marked const itself: include/linux/of.h: In function 'spear_setup_of_timer': arch/arm/mach-spear/time.c:207:34: error: 'timer_of_match' causes a section type conflict with 'orion_ge00_mvmdio_bus_name' static const struct of_device_id timer_of_match[] __initconst = { ^ arch/arm/plat-orion/common.c:475:32: note: 'orion_ge00_mvmdio_bus_name' was declared here static __initconst const char *orion_ge00_mvmdio_bus_name = "orion-mii"; ^ This marks it const as well. Signed-off-by: Arnd Bergmann --- arch/arm/plat-orion/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/plat-orion/common.c b/arch/arm/plat-orion/common.c index aff6994950ba..4e1d8270537c 100644 --- a/arch/arm/plat-orion/common.c +++ b/arch/arm/plat-orion/common.c @@ -472,7 +472,7 @@ void __init orion_ge11_init(struct mv643xx_eth_platform_data *eth_data, /***************************************************************************** * Ethernet switch ****************************************************************************/ -static __initconst const char *orion_ge00_mvmdio_bus_name = "orion-mii"; +static __initconst const char *const orion_ge00_mvmdio_bus_name = "orion-mii"; static __initdata struct mdio_board_info orion_ge00_switch_board_info;