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: 128923 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp4815985ljc; Tue, 20 Feb 2018 08:26:15 -0800 (PST) X-Google-Smtp-Source: AH8x224FivNt+/oNDt+qNS46j63ON71d+yb0kMMXh1bYLGCrEuvXZgWVjHlecSlfDJ1hLf8K2kW0 X-Received: by 2002:a17:902:aa81:: with SMTP id d1-v6mr140881plr.251.1519143975152; Tue, 20 Feb 2018 08:26:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519143975; cv=none; d=google.com; s=arc-20160816; b=aJwOc3TUBxRhoNFuMAu6snNz4Er+T9rTw3Qhyf+PmlSLbYbSyDd5Ira1Q8e1h1Sl/I IUDurtTrr3hnezUAgsbHJhpxoU+je6fW1ioK8RuPWVPpvZdg209Hm+3IZClSiQyIZUit 8bHP76kqRqa0Xa7RxdwcXrYOTJ5XuPUdMFyXAh8YaMvUijnytzotE/N/ytEDfc5VpRHw AQj2rOgUIYlj00TDmDHQkB4bIh6PJ5F82G6cLit5KN+HnfvGjKaOIM7D0AY+je6YNi5m 8FPADX9CXn0nT1jDTkvkKlcMaZKfymYU2SHuf2JiSdN8qIlHAKRxU1oM5rKZ7LrFoDZV 6yDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=sp3gfsVi1KfGh/1I6wArI9/2RHrnTKE71+AFMkmOCT4=; b=i4BIeVvlEKpOti9gFgOl3e3UISRYqZNdd6Kbiq4xjvZ/4/Xx7owbFNh7fF4CM9DYoy 6ZXXLMGYRvvDrpEi27GXN6jOLnQXd9gGdxVBYbQJ0k/ebMSXV7EjyGm9XilVJYsAOnr8 4L1VirYaTzjFMo56n9oFheMyqyMh/zT164SjNkpTDFPSRyi9jNd+5fqqaEcYJE9gvhAC 9OSrDwzQyM37XuiqlMdD04vI8KmiLSnDuVG84fu64UoWzi6a7u0fHdyfSJdrUijxsrFe 0p0stWupHZV0bKbS7LgRrAGXYH0Qx/s6qF77ccl9AXmXIwiidZ+w8MHUEKZN/M1hythl sR/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t125si7762543pgc.38.2018.02.20.08.26.14; Tue, 20 Feb 2018 08:26:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753000AbeBTQ0L (ORCPT + 28 others); Tue, 20 Feb 2018 11:26:11 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:37149 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752969AbeBTQ0H (ORCPT ); Tue, 20 Feb 2018 11:26:07 -0500 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 Cc: Arnd Bergmann , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.9.0 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;