All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm/xen: Remove definiition of virt_to_pfn in asm/xen/page.h
@ 2014-04-18 15:54 ` Julien Grall
  0 siblings, 0 replies; 30+ messages in thread
From: Julien Grall @ 2014-04-18 15:54 UTC (permalink / raw)
  To: linux-arm-kernel

virt_to_pfn has been defined in asm/memory.h by the commit e26a9e0 "ARM: Better
virt_to_page() handling"

This will result of a compilation warning when CONFIG_XEN is enabled.

arch/arm/include/asm/xen/page.h:80:0: warning: "virt_to_pfn" redefined [enabled by default]
 #define virt_to_pfn(v)          (PFN_DOWN(__pa(v)))
 ^
In file included from arch/arm/include/asm/page.h:163:0,
                 from arch/arm/include/asm/xen/page.h:4,
                 from include/xen/page.h:4,
                 from arch/arm/xen/grant-table.c:33:

The definition in memory.h is nearly the same (it directly expand PFN_DOWN),
so we can safely drop virt_to_pfn in xen include.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
---
 arch/arm/include/asm/xen/page.h |    1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/include/asm/xen/page.h b/arch/arm/include/asm/xen/page.h
index cf4f3e8..ded062f 100644
--- a/arch/arm/include/asm/xen/page.h
+++ b/arch/arm/include/asm/xen/page.h
@@ -77,7 +77,6 @@ static inline xpaddr_t machine_to_phys(xmaddr_t machine)
 }
 /* VIRT <-> MACHINE conversion */
 #define virt_to_machine(v)	(phys_to_machine(XPADDR(__pa(v))))
-#define virt_to_pfn(v)          (PFN_DOWN(__pa(v)))
 #define virt_to_mfn(v)		(pfn_to_mfn(virt_to_pfn(v)))
 #define mfn_to_virt(m)		(__va(mfn_to_pfn(m) << PAGE_SHIFT))
 
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 30+ messages in thread
* [PATCH] arm/xen: Remove definiition of virt_to_pfn in asm/xen/page.h
@ 2014-04-18 15:54 Julien Grall
  0 siblings, 0 replies; 30+ messages in thread
From: Julien Grall @ 2014-04-18 15:54 UTC (permalink / raw)
  To: stefano.stabellini
  Cc: ian.campbell, Julien Grall, linux-kernel, david.vrabel, xen-devel,
	linux-arm-kernel

virt_to_pfn has been defined in asm/memory.h by the commit e26a9e0 "ARM: Better
virt_to_page() handling"

This will result of a compilation warning when CONFIG_XEN is enabled.

arch/arm/include/asm/xen/page.h:80:0: warning: "virt_to_pfn" redefined [enabled by default]
 #define virt_to_pfn(v)          (PFN_DOWN(__pa(v)))
 ^
In file included from arch/arm/include/asm/page.h:163:0,
                 from arch/arm/include/asm/xen/page.h:4,
                 from include/xen/page.h:4,
                 from arch/arm/xen/grant-table.c:33:

The definition in memory.h is nearly the same (it directly expand PFN_DOWN),
so we can safely drop virt_to_pfn in xen include.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
---
 arch/arm/include/asm/xen/page.h |    1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/include/asm/xen/page.h b/arch/arm/include/asm/xen/page.h
index cf4f3e8..ded062f 100644
--- a/arch/arm/include/asm/xen/page.h
+++ b/arch/arm/include/asm/xen/page.h
@@ -77,7 +77,6 @@ static inline xpaddr_t machine_to_phys(xmaddr_t machine)
 }
 /* VIRT <-> MACHINE conversion */
 #define virt_to_machine(v)	(phys_to_machine(XPADDR(__pa(v))))
-#define virt_to_pfn(v)          (PFN_DOWN(__pa(v)))
 #define virt_to_mfn(v)		(pfn_to_mfn(virt_to_pfn(v)))
 #define mfn_to_virt(m)		(__va(mfn_to_pfn(m) << PAGE_SHIFT))
 
-- 
1.7.10.4

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

end of thread, other threads:[~2014-05-08 15:56 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-18 15:54 [PATCH] arm/xen: Remove definiition of virt_to_pfn in asm/xen/page.h Julien Grall
2014-04-18 15:54 ` Julien Grall
2014-04-24 12:22 ` David Vrabel
2014-04-24 12:22   ` David Vrabel
2014-04-24 12:49   ` Julien Grall
2014-04-24 12:49     ` Julien Grall
2014-04-24 14:11     ` David Vrabel
2014-04-24 14:11       ` David Vrabel
2014-04-25 17:05       ` Stefano Stabellini
2014-04-25 17:05         ` Stefano Stabellini
2014-05-07 11:41         ` Stefano Stabellini
2014-05-07 11:41           ` Stefano Stabellini
2014-05-07 11:46           ` David Vrabel
2014-05-07 11:46           ` David Vrabel
2014-05-07 11:46             ` David Vrabel
2014-05-07 16:58             ` Stefano Stabellini
2014-05-07 16:58               ` Stefano Stabellini
2014-05-08 11:05               ` Catalin Marinas
2014-05-08 11:05               ` Catalin Marinas
2014-05-08 11:05                 ` Catalin Marinas
2014-05-08 15:54                 ` Stefano Stabellini
2014-05-08 15:54                 ` Stefano Stabellini
2014-05-08 15:54                   ` Stefano Stabellini
2014-05-07 16:58             ` Stefano Stabellini
2014-05-07 11:41         ` Stefano Stabellini
2014-04-25 17:05       ` Stefano Stabellini
2014-04-24 14:11     ` David Vrabel
2014-04-24 12:49   ` Julien Grall
2014-04-24 12:22 ` David Vrabel
  -- strict thread matches above, loose matches on Subject: below --
2014-04-18 15:54 Julien Grall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.