From patchwork Thu Jun 12 04:30:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 31802 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4674C203C2 for ; Thu, 12 Jun 2014 04:32:41 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id o8sf2985619qcw.7 for ; Wed, 11 Jun 2014 21:32:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :mime-version:cc:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=9DKSHTxXBRikDNwUZ60b7NdNU33UI8mRqlku+dULGLQ=; b=OCFDNpcp8Jnb7/AdS7tMK0O41YVwsxXQ6hKJAGEwSZ8kRHORuUMa3NxZxJ959iwGJV 29gGG08ppsbwMp7QmEI/zotEjCPGqEyqVNDzXzRtFM+lYYsJebsH48x3cZ7Hu49Em7ob 4XFbtGld7inspW2bGBZhaS9PuB8g7Q14m1DchgKi31cO4SOGlEdCs4cRilZahHa5jwGJ iQBi4oepAW5QOBMAYFeoytfTZsy7rKgLCCgc8xSbYgj6Ezut+geSCS7KYeCpHhtAj2iq QCDSdEtge1S8I46jOZZi8fhrqluJgjABctLW8VvtqyM1ks/I6hhT9O4v4f6YwjUSOaGf b1nw== X-Gm-Message-State: ALoCoQn0X+TzHWxPjcOuPjMg9jRM1D8PuqIwly0+RNlo4A6GKwcSsl7yFllNXsaET76vHmJxovjA X-Received: by 10.224.13.67 with SMTP id b3mr1306517qaa.2.1402547560809; Wed, 11 Jun 2014 21:32:40 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.93.115 with SMTP id c106ls2881129qge.55.gmail; Wed, 11 Jun 2014 21:32:40 -0700 (PDT) X-Received: by 10.52.25.130 with SMTP id c2mr6387421vdg.27.1402547560672; Wed, 11 Jun 2014 21:32:40 -0700 (PDT) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id gm7si14947173vec.4.2014.06.11.21.32.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Jun 2014 21:32:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.169 as permitted sender) client-ip=209.85.128.169; Received: by mail-ve0-f169.google.com with SMTP id pa12so1274380veb.0 for ; Wed, 11 Jun 2014 21:32:40 -0700 (PDT) X-Received: by 10.220.159.4 with SMTP id h4mr42320483vcx.1.1402547560563; Wed, 11 Jun 2014 21:32:40 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.54.6 with SMTP id vs6csp370218vcb; Wed, 11 Jun 2014 21:32:40 -0700 (PDT) X-Received: by 10.224.54.133 with SMTP id q5mr57947194qag.84.1402547560148; Wed, 11 Jun 2014 21:32:40 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id l66si32906534qgf.78.2014.06.11.21.32.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jun 2014 21:32:40 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; 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 1Wuwex-0006Uo-5R; Thu, 12 Jun 2014 04:30:43 +0000 Received: from mail-qa0-f49.google.com ([209.85.216.49]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wuweu-0006Qs-1G for linux-arm-kernel@lists.infradead.org; Thu, 12 Jun 2014 04:30:40 +0000 Received: by mail-qa0-f49.google.com with SMTP id w8so943294qac.36 for ; Wed, 11 Jun 2014 21:30:17 -0700 (PDT) X-Received: by 10.224.122.211 with SMTP id m19mr57955438qar.6.1402547417566; Wed, 11 Jun 2014 21:30:17 -0700 (PDT) Received: from localhost (ec2-23-23-178-99.compute-1.amazonaws.com. [23.23.178.99]) by mx.google.com with ESMTPSA id o88sm17142284qge.19.2014.06.11.21.30.14 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 11 Jun 2014 21:30:17 -0700 (PDT) From: Viresh Kumar To: sachin.kamat@linaro.org Subject: [PATCH] ARM: exynos: Fix warning by constifying 'reg' in exynos_fdt_map_chipid() Date: Thu, 12 Jun 2014 10:00:02 +0530 Message-Id: <3c6b5c1f19fcbee39a3f0a0bd2c9ddd811d5e619.1402547301.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.0.0.rc2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140611_213040_165627_6ED0A09A X-CRM114-Status: UNSURE ( 9.56 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.216.49 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.216.49 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: Viresh Kumar , kgene.kim@samsung.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.169 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 exynos_fdt_map_chipid() was recently added with: cbf08b9 (ARM: EXYNOS: Consolidate exynos4 and exynos5 machine files) and generates this warning: arch/arm/mach-exynos/exynos.c: In function ‘exynos_fdt_map_chipid’: arch/arm/mach-exynos/exynos.c:208:6: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default] Constify 'reg' to fix it. Signed-off-by: Viresh Kumar --- arch/arm/mach-exynos/exynos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index 90aab4d..b71598a 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -198,7 +198,7 @@ static int __init exynos_fdt_map_chipid(unsigned long node, const char *uname, int depth, void *data) { struct map_desc iodesc; - __be32 *reg; + const __be32 *reg; int len; if (!of_flat_dt_is_compatible(node, "samsung,exynos4210-chipid") &&