mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] arm64/xen: redefine xen_remap on arm64
@ 2013-12-30  6:55 Chen Baozi
  2013-12-30  9:43 ` [Xen-devel] " Wei Liu
  2013-12-30 19:20 ` Mark Salter
  0 siblings, 2 replies; 10+ messages in thread
From: Chen Baozi @ 2013-12-30  6:55 UTC (permalink / raw)
  To: linux-arm-kernel, xen-devel
  Cc: catalin.marinas, stefano.stabellini, linux-kernel, msalter, Chen Baozi

xen_remap used to be defined as ioremap_cached on arm64. In commit
c04e8e2fe, a new ioremap_cache was implemented, and ioremap_cached
was deleted, while xen_remap stays the same. This would lead to
the failure when building with CONFIG_HVC_XEN. Redefined xen_remap
on arm64 as ioremap_cache on arm64 to fix it.

Signed-off-by: Chen Baozi <baozich@gmail.com>
---
 arch/arm/include/asm/xen/page.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/include/asm/xen/page.h b/arch/arm/include/asm/xen/page.h
index 75579a9..b3368df 100644
--- a/arch/arm/include/asm/xen/page.h
+++ b/arch/arm/include/asm/xen/page.h
@@ -117,6 +117,10 @@ static inline bool set_phys_to_machine(unsigned long pfn, unsigned long mfn)
 	return __set_phys_to_machine(pfn, mfn);
 }
 
+#ifdef CONFIG_ARM64
+#define xen_remap(cookie, size) ioremap_cache((cookie), (size))
+#else
 #define xen_remap(cookie, size) ioremap_cached((cookie), (size));
+#endif
 
 #endif /* _ASM_ARM_XEN_PAGE_H */
-- 
1.8.4.3


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

end of thread, other threads:[~2014-01-03 15:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-30  6:55 [PATCH] arm64/xen: redefine xen_remap on arm64 Chen Baozi
2013-12-30  9:43 ` [Xen-devel] " Wei Liu
2014-01-03 13:19   ` Stefano Stabellini
2013-12-30 19:20 ` Mark Salter
2014-01-03 13:13   ` Stefano Stabellini
2014-01-03 13:32     ` Stefano Stabellini
2014-01-03 14:31     ` Russell King - ARM Linux
2014-01-03 14:49       ` Stefano Stabellini
2014-01-03 14:59         ` Russell King - ARM Linux
2014-01-03 15:17           ` Stefano Stabellini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®