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-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N6Yf+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 };