From patchwork Tue Feb 20 16:24:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 128922 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp4815569ljc; Tue, 20 Feb 2018 08:25:47 -0800 (PST) X-Google-Smtp-Source: AH8x226Pb2qJz2jHYIaLb9MZSriPFflIM7RjME52hyjHZ8c8yOY+Qvzg86pb8Izn8nx3bxyeZjuU X-Received: by 2002:a17:902:b109:: with SMTP id q9-v6mr161433plr.340.1519143947663; Tue, 20 Feb 2018 08:25:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519143947; cv=none; d=google.com; s=arc-20160816; b=wVtSNxhpHjF/4xY9aIZSQAEABhyL16qHzEoKhf4LHuI9n1B60Ggtv0F1A4EIoV0R9O aPLrOi18DngRx25qN2M7YzMeoZwpKhTxfnAXKcsjOLLECVWSPGLJeZmKo18tQItSSmT5 1OY4vrsA9dAiWylY80/VkKALKPr10BbDKbJYkwc0bjPL6kOlkjXMkPGun3HrB85fdhSC 9AV6x7eq1CLnQFdYGTwGXbtCJydOZrPGtcFfivLfC1+r4Tb/i9wo4eN+Lg6RXhyB0BIu FcM1ABU+XKG8M3xCqwqPdG3wDNCQmH0pnhRxagNJLFRvt9MDsBEyLgSagg51hxtoTA9j Kr2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=PUDeTo2tJkqgcn0OxitaJbeM0WaroWw7PiL5Coc+3NI=; b=ucoMwkxQjw7nHZAPz0GJSoZRFgUjbij8zyaL+15lpTJioSb5GHMX9dONH1USoEFo39 ZPNvtP36yn+2lbn+0NPF3prwF+A0sKT6z+crTDaa4uIQpFEbcUpSTH5bt/WFohLdYi8P WdBXQ0+KDy4Ga+QKpIwvzJGw1c/qhjEvthSHRv69OIhIbXos3NUsAw7M2gfzPJd6iPW+ EXn8xNLV7BO4hZ2huMjBiPqoz8/cGZk1N6/tQAWvlv93//x8LUspvHHcIWCx9HSJpjaJ fh9a7TksEtOLU3I1DBYw5YpWE45E1jq9PW5kNPqfuX8gB80CVLbCKYWCy13FF/Eq4Y/Q WoOQ== 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 b10-v6si2532574plz.69.2018.02.20.08.25.47; Tue, 20 Feb 2018 08:25:47 -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 S1752788AbeBTQZm (ORCPT + 28 others); Tue, 20 Feb 2018 11:25:42 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:51205 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751827AbeBTQZl (ORCPT ); Tue, 20 Feb 2018 11:25:41 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0McnPF-1f5yZ10JWr-00HxBe; Tue, 20 Feb 2018 17:25:22 +0100 From: Arnd Bergmann To: arm@kernel.org, Alexander Shiyan , Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] ARM: clps711x: mark clps711x_compat as const Date: Tue, 20 Feb 2018 17:24:50 +0100 Message-Id: <20180220162519.1498223-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:fXYVUPI+6dLY7rICVDMHqPLs5NL8aankfKB+dOP8X51nrDYhwcB jm2+d9j086x7lSr0CKwarQ9ZsMHFmBUpP7bWqcrgB+Tlg1oWPsvsu08pxkixJZ+a0eXdTUQ Vs7+mnl6Zy/gE4y9kDvxj6B34itskviPvUx1WcQhsojGl7HCuDwllBm4VloYktUXIEWC7+1 uClV4vJ555zUk5ex0eCXA== X-UI-Out-Filterresults: notjunk:1; V01:K0:39cjZnKOEXQ=:/OO8b0BU3N9c2DykWw3DCa J3Kl6TfK0heG/Xdd2NPSMuncxip5QFIUnjuRHCjqo6rZWuaX8LxnissyAvT6oiW4Aw4wgt7ov Dphvh2PaB2hP4nduZyLXkU+e++3fGS/23EAHwhN3gnCExyKQGwxRvf+BG25lb6gc9lnRGd5sK RS4h0bsPS0DPUdsB/HwFArqjZN4vmbE+QYQ729u56lMhrbWw/AJABxCokTGZ+lI0xxqRF+tod vH5+CUKryUs//MX2oJ17ZKcuOUp1moajDnAW6nXlzByl2UCNnUWrNCkUVIxHLvPcmYOEiRu7W GrjT2Dm+594hAZqF3YXalDqZ+NRmIROSC9jzOQKlyuJ7lsqPx/MBaGEyGPwSayLun3gW1NcNp /3FptrVwp3sMC8cqhhi+bqsIIqmPMISdTzseHeBUv6YrIJsBjrap93/oUCN5VK74SP5Z8JSBw 9v6aMqqpPGwDkRIDWYZ2rQgEfHRuI1XYSsymJY4oW4QkYp1r4nrjSik6HUI32wri3ZWOBGyvP IuIt3l+vSoZl9LhPnZy2rAYOZx1yENpI4FSrGA1iD36YbXzt2QVXNjrXMXPijsEnMMluQd3J7 cYYjwF8ARvybpO2eOAp5uNO0x1DQueNphjGL5fQLAhA1Pk7jNYCkjMLSvw5mpm2n3RwaQ5lxK QG9jqKIzClS1beTzMn4Gzp6FlRP/gofzwmHhRSa9GHTKEClLVMzS3qLVtS/x6pCC6V4m1E+fX rWlv75h2LlI8HlzkN6Yf+em+WTxIXuDeNUYfoA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The array of string pointers is put in __initconst, and the strings themselves are marke 'const' but the the pointers are not, which caused a warning when built with LTO: arch/arm/mach-clps711x/board-dt.c:72:20: error: 'clps711x_compat' causes a section type conflict with 'feroceon_ids' static const char *clps711x_compat[] __initconst = { This marks the array itself const as well, which was certainly the intention originally. Signed-off-by: Arnd Bergmann --- arch/arm/mach-clps711x/board-dt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 diff --git a/arch/arm/mach-clps711x/board-dt.c b/arch/arm/mach-clps711x/board-dt.c index ee1f83b1a332..4c89a8e9a2e3 100644 --- a/arch/arm/mach-clps711x/board-dt.c +++ b/arch/arm/mach-clps711x/board-dt.c @@ -69,7 +69,7 @@ static void clps711x_restart(enum reboot_mode mode, const char *cmd) soft_restart(0); } -static const char *clps711x_compat[] __initconst = { +static const char *const clps711x_compat[] __initconst = { "cirrus,ep7209", NULL }; 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; From patchwork Tue Feb 20 16:24:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 128924 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp4816513ljc; Tue, 20 Feb 2018 08:26:44 -0800 (PST) X-Google-Smtp-Source: AH8x226wkCLPnRDsb/S0LJ6+tVpWrrYTWV616cUPTd+AUXHRhqGPScgDHW6Hcg36qmFi3fGS5L0i X-Received: by 2002:a17:902:6a89:: with SMTP id n9-v6mr168174plk.212.1519144004755; Tue, 20 Feb 2018 08:26:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519144004; cv=none; d=google.com; s=arc-20160816; b=hQRTiXUvDGtmvGNYLU9WIXCib/qnI1GNgoIyJF3nmsBtJ1omB12oeggXpuiHj47CFI l60KWSiM4swZyWl9ivAl8DHOe4tGRcDv4lpl5m7x8FjTNTGiOOXZzeh2H8tRvNHXTosD XhrU2hzSATzhY1Kg9C7QaNSl7R62CErvPqeLhx3TJkBZ1T8iNVLKdRkdRTVq/WeTLn5D zKsMuCZHurQoPnzy20W4LGpqfFRLnN1//vBcajQFsJcJDVRzd8jdbT+kfAqroQT5tUsK 33zDX4cvAXCqC04htS0+8jNDRnjQPeYM/O3x4n6llrR1XdalIy5tewRe1AMuFHBwKOPG j2yw== 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=kVvltVNyHXZJ2qftkb/psNNYmLXqeAfJH+hhHBiJTqc=; b=JscUw5rVwKO0kyEiV2Ebw5IkVSsjXDRJDqG7oP8tlLgYqcYvCUc7T5EqYiiZ2py6uy iI6tW5hkRmyuHTb/fmFsM50M8Ks3I3epeU9B62aUSu0epyYenqxm5PeJfCqAs7y9IiAV /xzmNJKIkSQvVimfMwMllEjv6IWOWWy9KVhVOS9cJIFzFhVzMoSyAlWlMqCRkjX8NKJR O0Kr+xMhurERnsuyu6gNRPcyrA6P8jV95mkHxS+M57iCHfvZklI8LTc9kMP7Gp4PtAc0 Ap/rXqsixjJh6GVy8H/PV5oqntyjBIt8O1ILcPafi0TAcw7U7ZSNAnNgR5CZ2oqxxE01 Ssaw== 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 a33-v6si4213785plc.237.2018.02.20.08.26.44; Tue, 20 Feb 2018 08:26:44 -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 S1753079AbeBTQ0l (ORCPT + 28 others); Tue, 20 Feb 2018 11:26:41 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:53929 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753030AbeBTQ0j (ORCPT ); Tue, 20 Feb 2018 11:26:39 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0LjrPF-1eDBEX1s77-00boUQ; Tue, 20 Feb 2018 17:26:08 +0100 From: Arnd Bergmann To: arm@kernel.org, Sekhar Nori , Kevin Hilman Cc: Arnd Bergmann , Neil Armstrong , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] ARM: davinci: mark spi_board_info arrays as const Date: Tue, 20 Feb 2018 17:24:52 +0100 Message-Id: <20180220162519.1498223-3-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:CEL2rBjhj9qEenvQisE9yXiW+GPYa2hHI2gzFVuC91Oy2cC+aMC Bh1saIFYJBE9eq67YaJWdbZC5r8dWmr4GMeaIVQe8DFSUIBleRzpZWm6BOr6dNbR9jhDdbX gJP1c1Oe3DjeUQEATzLnJZAyAX0hNrW0SiOxGEQ6AZ2AW12OYzNbOFX/jLOh9v+8EkN+tLq ptyoViB8yjRRd4usFczzg== X-UI-Out-Filterresults: notjunk:1; V01:K0:pgcakMaqZBo=:YCz4R+Xa9GS0IddLGToet+ ccyU5qiqGJb6y36ajSs+FX8NRxo2AZlblF6ejmMLS1D1sHO31DxhkgCSmoAoi+j/v3xdvkp8j HNSfGVeNgWq9ekf74UVpcwik5pnncfMCi/QWer72A5hVNtMOVP43qviv/JuNSvWn0ti6qNMNZ hybZ7tVD7jGaMC4FSU+zUXGuURKb66nezTtJdV84GO8dlkLh8K4p/PvAVgvU+zLfmUTwUGAD3 +K9iu1dHYMYQGPENw2FM1lgclX81+q2zyHeOsV/hSipW20OiCtWBDxVknEpNRz8S8aWROVqmT x4wTdqtMjQqLT8QkhP2oMQj64TZIAFQBKx+2RsqUhx5L1FA9zEWb0bA8ObwFFtXe+0jg8JixB RNzmuGtC2XLtAapryvwaxOaBxDWnE6KD/rF/rjVKBZdoBQzwZmIE/H0/6nAwvERvvZLCrl00Q lF4B6u4g2KBjnWPbtvft8AJielaZ1kjtaS4pBB8X1esDIAWhQyyn38SIbXkJycb9eDu9j5NZN q2CI6ExiE4uxggtqYPQTIOzpsnPXSDtPnrR3cZd5taUUGR5Xp7okZxiJcybQ/yUVUmH6h08cw irmlGO8zM6aAjefgGmMs0o7JssdhElh4S28u38IyC2A+TbYjGBlhGrk16UkIlUBR5ezO6yyLv CM0t4rbFhI3ZEqc20IERwkaqcakLL7Sbnaa+XukDEhHbcKL2UsNnQo8/54QmoQ37mmpIvAzXt Jufhr8iLwKS5kqm8se36B01bqChO31XStO2YcA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Building with LTO revealed that three spi_board_info arrays are marked __initconst, but not const: arch/arm/mach-davinci/board-dm365-evm.c: In function 'dm365_evm_init': arch/arm/mach-davinci/board-dm365-evm.c:729:30: error: 'dm365_evm_spi_info' causes a section type conflict with 'dm646x_edma_device' static struct spi_board_info dm365_evm_spi_info[] __initconst = { ^ arch/arm/mach-davinci/dm646x.c:603:42: note: 'dm646x_edma_device' was declared here static const struct platform_device_info dm646x_edma_device __initconst = { This marks them const as well, as was originally intended. Signed-off-by: Arnd Bergmann --- arch/arm/mach-davinci/board-dm355-evm.c | 2 +- arch/arm/mach-davinci/board-dm355-leopard.c | 2 +- arch/arm/mach-davinci/board-dm365-evm.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) -- 2.9.0 Acked-by: Sekhar Nori diff --git a/arch/arm/mach-davinci/board-dm355-evm.c b/arch/arm/mach-davinci/board-dm355-evm.c index e457f299cd44..d6b11907380c 100644 --- a/arch/arm/mach-davinci/board-dm355-evm.c +++ b/arch/arm/mach-davinci/board-dm355-evm.c @@ -368,7 +368,7 @@ static struct spi_eeprom at25640a = { .flags = EE_ADDR2, }; -static struct spi_board_info dm355_evm_spi_info[] __initconst = { +static const struct spi_board_info dm355_evm_spi_info[] __initconst = { { .modalias = "at25", .platform_data = &at25640a, diff --git a/arch/arm/mach-davinci/board-dm355-leopard.c b/arch/arm/mach-davinci/board-dm355-leopard.c index be997243447b..fad9a5611a5d 100644 --- a/arch/arm/mach-davinci/board-dm355-leopard.c +++ b/arch/arm/mach-davinci/board-dm355-leopard.c @@ -217,7 +217,7 @@ static struct spi_eeprom at25640a = { .flags = EE_ADDR2, }; -static struct spi_board_info dm355_leopard_spi_info[] __initconst = { +static const struct spi_board_info dm355_leopard_spi_info[] __initconst = { { .modalias = "at25", .platform_data = &at25640a, diff --git a/arch/arm/mach-davinci/board-dm365-evm.c b/arch/arm/mach-davinci/board-dm365-evm.c index e75741fb2c1d..e3780986d2a3 100644 --- a/arch/arm/mach-davinci/board-dm365-evm.c +++ b/arch/arm/mach-davinci/board-dm365-evm.c @@ -726,7 +726,7 @@ static struct spi_eeprom at25640 = { .flags = EE_ADDR2, }; -static struct spi_board_info dm365_evm_spi_info[] __initconst = { +static const struct spi_board_info dm365_evm_spi_info[] __initconst = { { .modalias = "at25", .platform_data = &at25640,