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: 10230419 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 6C43E60392 for ; Tue, 20 Feb 2018 16:25:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B91D2875B for ; Tue, 20 Feb 2018 16:25:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4FDEA28767; Tue, 20 Feb 2018 16:25:47 +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 D2C3B2875B for ; Tue, 20 Feb 2018 16:25:46 +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: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:In-Reply-To: References:List-Owner; bh=UqfisN4NbGsvTCMT1eEK33Y0VxjNIjws3Tkx+KauuGE=; b=JkQ bLwl4jTiEkNpMp0hauMKa79lL1plCik1v/g6LfYiQCgXIrAR/ZwplkVQOvluOit5QKqLXgIY4RbIL De/pIm91pbksDELs1RzP7B7cmKMLOO5oJo6vrlkje+PV/99sQxoSlUY/uFjEbmk9FyCw5VBVQOlEg HX9YuMRWdPWIu1h2QRwM47/8iMo1OxBlaf4ZjVPfDhny+0TCqrs7lVNOrkhAPTsy7MThIPXGQK+x/ fFBd639X8eD/mkkrYKo4fniUBvOtcqYiyKS7N3/Nu4oQJXvDeOJKVD9RS5tHsaeauqeo5yhxjSpJM N4KvlT6MbFcHshXIpXLivKyFnepV7Sw==; 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 1eoAjd-0000MV-4f; Tue, 20 Feb 2018 16:25:41 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eoAjY-00009q-0L for linux-arm-kernel@lists.infradead.org; Tue, 20 Feb 2018 16:25:37 +0000 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 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== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180220_082536_364688_2238BA12 X-CRM114-Status: GOOD ( 10.54 ) 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-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.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 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(-) 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 };