From patchwork Thu Aug 22 07:40:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 19399 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f200.google.com (mail-ye0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 61F16248E6 for ; Thu, 22 Aug 2013 07:42:09 +0000 (UTC) Received: by mail-ye0-f200.google.com with SMTP id r5sf1234782yen.7 for ; Thu, 22 Aug 2013 00:42:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=y9w3yjcLTqObkCopK0lqnImRVOMPiVFI8045bBD9lHk=; b=DZnydAthfV573xX3KsRFc3w6RblbJ6IjuQi1lb4DS2c9AEGu6GwTZUWcT6863WAPIO Wjjw2heSeHtSwTDVx8AVZOWmserxo3TWFb0SJDEk/KbLfyaO1fjHhcCp/U6zpoFshZCr mSaObiRQyw4wr3TNXIk1pejixOOL7wD1Eabc0g3fW2VT4cFtsmnEN3rf9VLa8iHbujiC 3kDg5070pyL354U1vQksF5D18XeVdfDR/yk1TrupvD2iIH23ANdDiZM6wa3oD6aWiwbB FgPYy5UxAOWcfFPxZM/CLhl6lCGH7CGCxYeCev9XnIgGBFzbGp2MKt9XfklBENpjPPz4 hy4A== X-Received: by 10.224.52.6 with SMTP id f6mr12202788qag.2.1377157328959; Thu, 22 Aug 2013 00:42:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.0.102 with SMTP id 6ls995762qed.34.gmail; Thu, 22 Aug 2013 00:42:08 -0700 (PDT) X-Received: by 10.58.73.202 with SMTP id n10mr10335047vev.7.1377157328599; Thu, 22 Aug 2013 00:42:08 -0700 (PDT) Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by mx.google.com with ESMTPS id sy7si3539641vdc.53.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 Aug 2013 00:42:08 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.44 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.44; Received: by mail-vb0-f44.google.com with SMTP id e13so985613vbg.31 for ; Thu, 22 Aug 2013 00:42:08 -0700 (PDT) X-Gm-Message-State: ALoCoQlUPQOoYbN8XjMp27km+X2It8fToqIgKbNYMf31nw0JSUuttJoMAkEmcpBNLoSGPRslIfWO X-Received: by 10.220.237.208 with SMTP id kp16mr10200261vcb.4.1377157328505; Thu, 22 Aug 2013 00:42:08 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp14692vcz; Thu, 22 Aug 2013 00:42:08 -0700 (PDT) X-Received: by 10.182.128.6 with SMTP id nk6mr12828717obb.11.1377157327904; Thu, 22 Aug 2013 00:42:07 -0700 (PDT) Received: from mail-ob0-f175.google.com (mail-ob0-f175.google.com [209.85.214.175]) by mx.google.com with ESMTPS id eb4si2912475obb.21.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 Aug 2013 00:42:07 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.214.175 is neither permitted nor denied by best guess record for domain of andre.przywara@linaro.org) client-ip=209.85.214.175; Received: by mail-ob0-f175.google.com with SMTP id xn12so2907699obc.20 for ; Thu, 22 Aug 2013 00:42:07 -0700 (PDT) X-Received: by 10.60.134.14 with SMTP id pg14mr12579199oeb.66.1377157327240; Thu, 22 Aug 2013 00:42:07 -0700 (PDT) Received: from slackpad.drs.calxeda.com (g224195237.adsl.alicedsl.de. [92.224.195.237]) by mx.google.com with ESMTPSA id b5sm16811165obj.8.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 Aug 2013 00:42:06 -0700 (PDT) From: Andre Przywara To: Ian.Campbell@citrix.com, julien.grall@linaro.org Cc: stefano.stabellini@eu.citrix.com, xen-devel@lists.xen.org, patches@linaro.org, Andre Przywara Subject: [PATCH] ARM: fix const declaration of platform struct Date: Thu, 22 Aug 2013 09:40:54 +0200 Message-Id: <1377157254-17098-1-git-send-email-andre.przywara@linaro.org> X-Mailer: git-send-email 1.7.12.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: andre.przywara@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.44 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , As Julien pointed out the other day, the data type for the platform DT name match struct is wrong. To be really immutable, we have to use "const char * const". Fix it on the three currently existing platforms. Signed-off-by: Andre Przywara CC: Julien Grall --- xen/arch/arm/platforms/exynos5.c | 2 +- xen/arch/arm/platforms/midway.c | 2 +- xen/arch/arm/platforms/vexpress.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/arch/arm/platforms/exynos5.c b/xen/arch/arm/platforms/exynos5.c index 1368a04..262ded8 100644 --- a/xen/arch/arm/platforms/exynos5.c +++ b/xen/arch/arm/platforms/exynos5.c @@ -86,7 +86,7 @@ static uint32_t exynos5_quirks(void) return PLATFORM_QUIRK_DOM0_MAPPING_11; } -static const char const *exynos5_dt_compat[] __initdata = +static const char * const exynos5_dt_compat[] __initdata = { "samsung,exynos5250", NULL diff --git a/xen/arch/arm/platforms/midway.c b/xen/arch/arm/platforms/midway.c index 2d3be1b..7a3dfe1 100644 --- a/xen/arch/arm/platforms/midway.c +++ b/xen/arch/arm/platforms/midway.c @@ -41,7 +41,7 @@ static void midway_reset(void) iounmap(pmu); } -static const char const *midway_dt_compat[] __initdata = +static const char * const midway_dt_compat[] __initdata = { "calxeda,ecx-2000", NULL diff --git a/xen/arch/arm/platforms/vexpress.c b/xen/arch/arm/platforms/vexpress.c index 8fc30c4..6f7dc2c 100644 --- a/xen/arch/arm/platforms/vexpress.c +++ b/xen/arch/arm/platforms/vexpress.c @@ -119,7 +119,7 @@ static void vexpress_reset(void) iounmap(sp810); } -static const char const *vexpress_dt_compat[] __initdata = +static const char * const vexpress_dt_compat[] __initdata = { "arm,vexpress", NULL