linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: exynos: Fix warning by constifying 'reg' in exynos_fdt_map_chipid()
@ 2014-06-12  4:30 Viresh Kumar
  2014-06-12  4:34 ` Viresh Kumar
  0 siblings, 1 reply; 5+ messages in thread
From: Viresh Kumar @ 2014-06-12  4:30 UTC (permalink / raw)
  To: linux-arm-kernel

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 <viresh.kumar@linaro.org>
---
 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") &&
-- 
2.0.0.rc2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-23  3:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-12  4:30 [PATCH] ARM: exynos: Fix warning by constifying 'reg' in exynos_fdt_map_chipid() Viresh Kumar
2014-06-12  4:34 ` Viresh Kumar
2014-06-12  4:49   ` Sachin Kamat
2014-06-23  1:14     ` Kukjin Kim
2014-06-23  3:18       ` Sachin Kamat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).