* [PATCH] arm/mxs: PHYS_OFFSET can not be defined in platform any longer
@ 2011-09-23 7:49 Shawn Guo
0 siblings, 0 replies; only message in thread
From: Shawn Guo @ 2011-09-23 7:49 UTC (permalink / raw)
To: linux-arm-kernel
Since ARM_PATCH_PHYS_VIRT has been globally enabled by default,
PHYS_OFFSET can not be defined in platform any longer. Otherwise,
we will run into the following warning.
arch/arm/include/asm/memory.h:156:0: warning: "PHYS_OFFSET" redefined
arch/arm/mach-mxs/include/mach/memory.h:22:0: note: this is the location of the previous definition
Change PHYS_OFFSET to PLAT_PHYS_OFFSET to avoid the warning.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
Yes, I know that Nicolas has a big patch to remove mach/memory.h
globally. But rmk has not acked/pulled it. This patch is posted
just for reminding that if Nicolas' patch does not hit v3.2, we will
have to merge this patch to save a fix patch to remove the warning.
arch/arm/mach-mxs/include/mach/memory.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-mxs/include/mach/memory.h b/arch/arm/mach-mxs/include/mach/memory.h
index b5420a5..0618ae2 100644
--- a/arch/arm/mach-mxs/include/mach/memory.h
+++ b/arch/arm/mach-mxs/include/mach/memory.h
@@ -19,6 +19,6 @@
#ifndef __MACH_MXS_MEMORY_H__
#define __MACH_MXS_MEMORY_H__
-#define PHYS_OFFSET UL(0x40000000)
+#define PLAT_PHYS_OFFSET UL(0x40000000)
#endif /* __MACH_MXS_MEMORY_H__ */
--
1.7.4.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-09-23 7:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-23 7:49 [PATCH] arm/mxs: PHYS_OFFSET can not be defined in platform any longer Shawn Guo
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).