From patchwork Sun Nov 22 01:41:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 7675061 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 29C989F1C2 for ; Sun, 22 Nov 2015 01:43:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3C149205E9 for ; Sun, 22 Nov 2015 01:43:30 +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 722DF205E7 for ; Sun, 22 Nov 2015 01:43:29 +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 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 ; 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 To: Simon Horman , Magnus Damm Subject: [PATCH] mach-shmobile/setup-r8a7793.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_174131_474750_69828D83 X-CRM114-Status: UNSURE ( 9.48 ) 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-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, };