Message ID | alpine.LFD.2.20.1511212024220.22569@knanqh.ubzr |
---|---|
State | Accepted |
Commit | 5d48417592583ec64ec62661dd7cf1bd342a48fc |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp713460lbb; Sat, 21 Nov 2015 17:38:12 -0800 (PST) X-Received: by 10.68.143.40 with SMTP id sb8mr21974922pbb.29.1448156292768; Sat, 21 Nov 2015 17:38:12 -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 x24si9213971pfa.173.2015.11.21.17.38.12 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Nov 2015 17:38:12 -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 1a0JZP-0002yL-Km; Sun, 22 Nov 2015 01:35:59 +0000 Received: from mail-qg0-x232.google.com ([2607:f8b0:400d:c04::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a0JZL-0002xL-5K for linux-arm-kernel@lists.infradead.org; Sun, 22 Nov 2015 01:35:56 +0000 Received: by qgea14 with SMTP id a14so95852277qge.0 for <linux-arm-kernel@lists.infradead.org>; Sat, 21 Nov 2015 17:35:33 -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=w/gfNzfG0jgGXA60o2Ee96NE7ZVkUIjjgs66uccYetY=; b=WaRxf7c0pkHPPheTss9DJmpI0RHw8zGBJcNQKZvZU0GVJh5XKXbr3u9HodFy+kT4qh Z/Tn8NwoJRsJ5fHKfWQAEUMpevE/KGhQg4yT0BDUQ7nz7fHhyFz2KSYSVL9b89fu7Cey zJCDnYY7vdSLxkuUCC/W4utVGPQOOkhmzwS7IK39qnB90NkJDLc8tfvDnOo6sIkYQL2L hHqrb777cZseOiwVOUy4/boVqsWfuw2ZD2kjJ9kwYENFcizuZM3RK2oLekUZOGm9Rvpf /4JmO0Z5EUX1EDYCaXld2R/STjKgt0Czn4pyYhE2nqq8vdKDp4AanISzvXSnjbuYmmdb IsZw== 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=w/gfNzfG0jgGXA60o2Ee96NE7ZVkUIjjgs66uccYetY=; b=lM8lp6o8m48JIJGmrzatkvnW3NMbY2zAlKu07w+CfNlBGSs9l/JdypjB8dXkbcFHwb d382ljSI679QpDc7c4lPUmZQwsrMZeGgpp8FtGQ1zVDL+cVY1yGUPM/fE89YiMwG1xw6 zX4de+680KPldFTiv9I+RBMZ1yCVJOI62Ix/01i664CtMZ40ShVypeipPxZt/KSFefUG /O4SWcYL2c7tTlZgUtAIolMwdLw4gj3mESBwH0B12tlkd89CE0Mj15o3x1NCY9wIqLPa 6HTS3dM75/upMxDCR2dhQnH53eT/VJSLNBQgDD/ql/kdr3MaPFh7P8v6daQ9dST0bMjo YYIA== X-Gm-Message-State: ALoCoQlrWE1xqDtXU2xcMHLFEvnYEIZNjf9LsI2uUkOpUv2fBXGD56KA/+FRY6vh7+N0CwaslLex X-Received: by 10.140.105.182 with SMTP id c51mr20379576qgf.15.1448156133363; Sat, 21 Nov 2015 17:35:33 -0800 (PST) Received: from xanadu.home (modemcable065.157-23-96.mc.videotron.ca. [96.23.157.65]) by smtp.gmail.com with ESMTPSA id c48sm1478397qge.49.2015.11.21.17.35.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Nov 2015 17:35:32 -0800 (PST) Date: Sat, 21 Nov 2015 20:35:31 -0500 (EST) From: Nicolas Pitre <nicolas.pitre@linaro.org> To: Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <kernel@pengutronix.de> Subject: [PATCH] mach-imx/mach-imx6ul.c: proper constness with __initconst Message-ID: <alpine.LFD.2.20.1511212024220.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_173555_339767_97F1C10F X-CRM114-Status: UNSURE ( 9.84 ) 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:c04:0:0:0:232 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-imx/mach-imx6ul.c b/arch/arm/mach-imx/mach-imx6ul.c index acaf7056ef..a38b16b699 100644 --- a/arch/arm/mach-imx/mach-imx6ul.c +++ b/arch/arm/mach-imx/mach-imx6ul.c @@ -84,7 +84,7 @@ static void __init imx6ul_init_late(void) platform_device_register_simple("imx6q-cpufreq", -1, NULL, 0); } -static const char *imx6ul_dt_compat[] __initconst = { +static const char * const imx6ul_dt_compat[] __initconst = { "fsl,imx6ul", 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