References: fate#311376, fate#311529, bnc#578927, bnc#628554 # HG changeset patch # User Keir Fraser # Date 1300887295 0 # Node ID c80e0fb4fe932b4d8379ea5739af93ae22a30ea5 # Parent 3831bd253e02aa0536ed32e936777d026abb955e Define new header for PFN_{DOWN,UP} macros. Signed-off-by: Keir Fraser --- a/xen/arch/x86/domain_build.c +++ b/xen/arch/x86/domain_build.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include --- a/xen/arch/x86/e820.c +++ b/xen/arch/x86/e820.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -99,6 +99,7 @@ #include #include #include +#include #include #include #include --- a/xen/arch/x86/msi.c +++ b/xen/arch/x86/msi.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include --- a/xen/arch/x86/numa.c +++ b/xen/arch/x86/numa.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #ifdef CONFIG_COMPAT --- a/xen/arch/x86/srat.c +++ b/xen/arch/x86/srat.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include --- a/xen/arch/x86/tboot.c +++ b/xen/arch/x86/tboot.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include --- a/xen/include/asm-x86/page.h +++ b/xen/include/asm-x86/page.h @@ -396,8 +396,6 @@ static inline uint32_t cacheattr_to_pte_ #endif /* !__ASSEMBLY__ */ -#define PFN_DOWN(x) ((x) >> PAGE_SHIFT) -#define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT) #define PAGE_ALIGN(x) (((x) + PAGE_SIZE - 1) & PAGE_MASK) #endif /* __X86_PAGE_H__ */ --- /dev/null +++ b/xen/include/xen/pfn.h @@ -0,0 +1,9 @@ +#ifndef __XEN_PFN_H__ +#define __XEN_PFN_H__ + +#include + +#define PFN_DOWN(x) ((x) >> PAGE_SHIFT) +#define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT) + +#endif /* __XEN_PFN_H__ */