From patchwork Sun Nov 22 01:35:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 7675051 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EF3BBBF90C for ; Sun, 22 Nov 2015 01:38:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E4559205E2 for ; Sun, 22 Nov 2015 01:38:49 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 282DE205E1 for ; Sun, 22 Nov 2015 01:38:49 +0000 (UTC) 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 ; 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 To: Shawn Guo , Sascha Hauer Subject: [PATCH] mach-imx/mach-imx6ul.c: proper constness with __initconst Message-ID: 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-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 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, };