Message ID | alpine.LFD.2.20.1511212036580.22569@knanqh.ubzr |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp714599lbb; Sat, 21 Nov 2015 17:43:04 -0800 (PST) X-Received: by 10.66.146.130 with SMTP id tc2mr27747433pab.26.1448156584460; Sat, 21 Nov 2015 17:43:04 -0800 (PST) Return-Path: <linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org> Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id r68si9239134pfi.233.2015.11.21.17.43.04 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Nov 2015 17:43:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a0Jeo-0005gO-W9; Sun, 22 Nov 2015 01:41:35 +0000 Received: from mail-qk0-x22d.google.com ([2607:f8b0:400d:c09::22d]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a0Jel-0005e6-BM for linux-arm-kernel@lists.infradead.org; Sun, 22 Nov 2015 01:41:31 +0000 Received: by qkao63 with SMTP id o63so48089565qka.2 for <linux-arm-kernel@lists.infradead.org>; Sat, 21 Nov 2015 17:41:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:user-agent:mime-version :content-type; bh=JukzUIjZUk3Fs41B3x5yT9SsLd2WGPeXIgFQQEeHQ7s=; b=yT+IPUuOHAJRweT6NcJCLg0uGnytp17UCARHEJGlpbcMtPBfqoAG9BafLWys4jlrNE T863n9kv5IL5/u4BQpsYG3hjUan8hn871tyXiNztWGR7EQ/xd2MaqtLFXrznDIPPrDAJ n2HbXJmHyMJmwKp/qWQ0sQM4drKHwqN/SSja0Fwiy4tU8CK0+m8bgBB6SL0v8+5v7La2 ALSX5ZnwjPbsFRVAIpSqJp2kLkd+IgcvQlnGLNKTIh0PEQm0nb8C4KsOcc/gL9badmFJ MScgYJmkIHbgDpRPawc7vTgCZwRg4xMrKkSHukM+CgunzpquqX3F/X2a0gpLhn5ZwLfi XrFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:user-agent :mime-version:content-type; bh=JukzUIjZUk3Fs41B3x5yT9SsLd2WGPeXIgFQQEeHQ7s=; b=hb7eNMarnUMewHlSZq6SGSyzc8Dk8QhTJgxVR/QOu+KTBCjwAQfbtzZiiGrT6z3fR6 rQowyNZ+YQs0Wrwk042R1EmXycIdKecRSDpKli06Ucu3fJ0u98/+nbAT47luxBYQD8rT lH7DDhea8DE/FLt5ALakZEOjDhOvziSpzdzBHRSl7YajiiKFUunB36ffOqV1lH54ZIII CAGj1tpDaXdyXFrvlImnPqdN1cq046QFdR1SZMQerAYkBWK0XUESeGiGxsX/DyR7Uwsi bFNYLIknsVaLaRl6wl3hCttq9MfSG7OA2YzyCOmIgn2thyEl/F4xGM+raaRxBKJ8yPKV 1wug== X-Gm-Message-State: ALoCoQk5S6eCs3DrysxBpMRxub3l7utL9HDQnWBd+dU0AYV3WJqCLj4bCTzYcGGlnhzifkPBPar1 X-Received: by 10.55.79.145 with SMTP id d139mr20276719qkb.101.1448156469954; Sat, 21 Nov 2015 17:41:09 -0800 (PST) Received: from xanadu.home (modemcable065.157-23-96.mc.videotron.ca. [96.23.157.65]) by smtp.gmail.com with ESMTPSA id j89sm1486183qgj.35.2015.11.21.17.41.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Nov 2015 17:41:08 -0800 (PST) Date: Sat, 21 Nov 2015 20:41:07 -0500 (EST) From: Nicolas Pitre <nicolas.pitre@linaro.org> To: Simon Horman <horms@verge.net.au>, Magnus Damm <magnus.damm@gmail.com> Subject: [PATCH] mach-shmobile/setup-r8a7793.c: proper constness with __initconst Message-ID: <alpine.LFD.2.20.1511212036580.22569@knanqh.ubzr> User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151121_174131_474750_69828D83 X-CRM114-Status: UNSURE ( 9.48 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400d:c09:0:0:0:22d listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org |
diff --git a/arch/arm/mach-shmobile/setup-r8a7793.c b/arch/arm/mach-shmobile/setup-r8a7793.c index 1d2825cb7a..5fce87f7f2 100644 --- a/arch/arm/mach-shmobile/setup-r8a7793.c +++ b/arch/arm/mach-shmobile/setup-r8a7793.c @@ -19,7 +19,7 @@ #include "common.h" #include "rcar-gen2.h" -static const char *r8a7793_boards_compat_dt[] __initconst = { +static const char * const r8a7793_boards_compat_dt[] __initconst = { "renesas,r8a7793", NULL, };
Both the pointer array and the pointed data have to be const when using __initconst to be correct. This also fixes LTO builds that otherwise fail with section mismatch errors. Signed-off-by: Nicolas Pitre <nico@linaro.org> _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel