vMSI: fix ia64 build for 21577:c41ab909f08e
PATCH 1/1 vMSI: fix ia64 build for 21577:c41ab909f08e
Hi,
This patch is for xen-4.0-testing.
On ia64, 21577:c41ab909f08e introduces the following error:
/xen/include/xen/pci.h:52: warning: implicit declaration of function `PFN_UP' /xen/include/xen/pci.h:52: error: variable-size type declared outside of any function /xen/include/xen/pci.h:53: error: variable-size type declared outside of any function
Because the macro PFN_UP() is defined on x86 only.
Notice: This patch is mainly backported for 23074:c80e0fb4fe93.
Signature · 1 line
KUWAMURA Shin'ya
# HG changeset patch
# User KUWAMURA Shin'ya <[email protected]> # Date 1332489323 -32400
# Node ID cb3bc921ff4967fcd7f5fcac6c4360983ddcf429 # Parent 79efd987e0c95d7bf81b8c818a77a53c72850d35
vMSI: fix ia64 build for 21577:c41ab909f08e
On ia64, 21577:c41ab909f08e introduces the following error:
/xen/include/xen/pci.h:52: warning: implicit declaration of function `PFN_UP' /xen/include/xen/pci.h:52: error: variable-size type declared outside of any function /xen/include/xen/pci.h:53: error: variable-size type declared outside of any function
Because the macro PFN_UP() is defined on x86 only.
xen-unstable changeset: 23074:c80e0fb4fe93 xen-unstable date: Wed Mar 23 13:34:55 2011 +0000
xen/arch/x86/domain_build.c +1 -0
@@ -20,6 +20,7 @@#include <xen/bitops.h> #include <xen/compat.h> #include <xen/libelf.h> +#include <xen/pfn.h> #include <asm/regs.h> #include <asm/system.h> #include <asm/io.h>
xen/arch/x86/e820.c +1 -0
@@ -4,6 +4,7 @@#include <xen/mm.h> #include <xen/compat.h> #include <xen/dmi.h> +#include <xen/pfn.h> #include <asm/e820.h> #include <asm/page.h> #include <asm/processor.h>
xen/arch/x86/mm.c +1 -0
@@ -99,6 +99,7 @@#include <xen/event.h> #include <xen/iocap.h> #include <xen/guest_access.h> +#include <xen/pfn.h> #include <asm/paging.h> #include <asm/shadow.h> #include <asm/page.h>
xen/arch/x86/msi.c +1 -0
@@ -17,6 +17,7 @@#include <xen/pci.h> #include <xen/pci_regs.h> #include <xen/keyhandler.h> +#include <xen/pfn.h> #include <asm/io.h> #include <asm/smp.h> #include <asm/desc.h>
xen/arch/x86/numa.c +1 -0
@@ -13,6 +13,7 @@#include <xen/keyhandler.h> #include <xen/time.h> #include <xen/smp.h> +#include <xen/pfn.h> #include <asm/acpi.h> #include <xen/sched.h>
xen/arch/x86/setup.c +1 -0
@@ -20,6 +20,7 @@#include <xen/rcupdate.h> #include <xen/vga.h> #include <xen/dmi.h> +#include <xen/pfn.h> #include <xen/nodemask.h> #include <public/version.h> #ifdef CONFIG_COMPAT
xen/arch/x86/srat.c +1 -0
@@ -17,6 +17,7 @@#include <xen/nodemask.h> #include <xen/acpi.h> #include <xen/numa.h> +#include <xen/pfn.h> #include <asm/e820.h> #include <asm/page.h>
xen/arch/x86/tboot.c +1 -0
@@ -6,6 +6,7 @@#include <xen/domain_page.h> #include <xen/iommu.h> #include <xen/acpi.h> +#include <xen/pfn.h> #include <asm/fixmap.h> #include <asm/page.h> #include <asm/processor.h>
xen/include/asm-x86/page.h +0 -3
@@ -385,9 +385,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) -#endif /* __X86_PAGE_H__ */ /*
xen/include/xen/pci.h +1 -0
@@ -12,6 +12,7 @@#include <xen/list.h> #include <xen/spinlock.h> #include <xen/pci_regs.h> +#include <xen/pfn.h> #include <asm/page.h> /*
xen/include/xen/pfn.h new file +9 -0
@@ -0,0 +1,9 @@ +#ifndef __XEN_PFN_H__ +#define __XEN_PFN_H__ + +#include <asm/page.h> + +#define PFN_DOWN (x) ((x) >> PAGE_SHIFT) +#define PFN_UP (x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT) + +#endif /* __XEN_PFN_H__ */
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 2 lines
Quoted 1 line
Quoted 1 line · KUWAMURA Shin'ya
This patch is for xen-4.0-testing.
As with the other patch, you should probably indicate so in the subject.
Quoted 10 lines
On ia64, 21577:c41ab909f08e introduces the following error:
/xen/include/xen/pci.h:52: warning: implicit declaration of function
`PFN_UP'
/xen/include/xen/pci.h:52: error: variable-size type declared outside of
any function
/xen/include/xen/pci.h:53: error: variable-size type declared outside of
any functionBecause the macro
PFN_UP()is defined on x86 only.
Notice: This patch is mainly backported for 23074:c80e0fb4fe93.
And again, if you backport something you ought to include the original S-o-b.
Jan
Quoted 3 lines
Signed-off-by KUWAMURA Shin'ya <[email protected]>Signature · 1 line
KUWAMURA Shin'ya
Hi Jan,
Quoted 12 lines
Quoted 12 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
On Fri, 23 Mar 2012 08:53:31 +0000
[email protected]("Jan Beulich") said:On 23.03.12 at 09:00, "KUWAMURA Shin'ya" <[email protected]> wrote:
On ia64, 21577:c41ab909f08e introduces the following error:
/xen/include/xen/pci.h:52: warning: implicit declaration of function
`PFN_UP'
/xen/include/xen/pci.h:52: error: variable-size type declared outside of
any function
/xen/include/xen/pci.h:53: error: variable-size type declared outside of
any function
Quoted 4 lines
Quoted 2 lines
Because the macro
PFN_UP()is defined on x86 only.
Notice: This patch is mainly backported for 23074:c80e0fb4fe93.And again, if you backport something you ought to include the original S-o-b.
Excuse me, S-o-b lines is here:
Best regards,
Signature · 1 line
KUWAMURA Shin'ya
# HG changeset patch
# User KUWAMURA Shin'ya <[email protected]> # Date 1332495323 -32400
# Node ID bc2c1b2caffc8ffbad5fd4028dc9547523b03096 # Parent e49c3dcfa28a8fd53bd0b963269ba48e89efbf06
vMSI: fix ia64 build for 21577:c41ab909f08e
On ia64, 21577:c41ab909f08e introduces the following error:
/xen/include/xen/pci.h:52: warning: implicit declaration of function `PFN_UP' /xen/include/xen/pci.h:52: error: variable-size type declared outside of any function /xen/include/xen/pci.h:53: error: variable-size type declared outside of any function
Because the macro PFN_UP() is defined on x86 only.
xen-unstable changeset: 23074:c80e0fb4fe93 xen-unstable date: Wed Mar 23 13:34:55 2011 +0000
xen/arch/x86/domain_build.c +1 -0
@@ -20,6 +20,7 @@#include <xen/bitops.h> #include <xen/compat.h> #include <xen/libelf.h> +#include <xen/pfn.h> #include <asm/regs.h> #include <asm/system.h> #include <asm/io.h>
xen/arch/x86/e820.c +1 -0
@@ -4,6 +4,7 @@#include <xen/mm.h> #include <xen/compat.h> #include <xen/dmi.h> +#include <xen/pfn.h> #include <asm/e820.h> #include <asm/page.h> #include <asm/processor.h>
xen/arch/x86/mm.c +1 -0
@@ -99,6 +99,7 @@#include <xen/event.h> #include <xen/iocap.h> #include <xen/guest_access.h> +#include <xen/pfn.h> #include <asm/paging.h> #include <asm/shadow.h> #include <asm/page.h>
xen/arch/x86/msi.c +1 -0
@@ -17,6 +17,7 @@#include <xen/pci.h> #include <xen/pci_regs.h> #include <xen/keyhandler.h> +#include <xen/pfn.h> #include <asm/io.h> #include <asm/smp.h> #include <asm/desc.h>
xen/arch/x86/numa.c +1 -0
@@ -13,6 +13,7 @@#include <xen/keyhandler.h> #include <xen/time.h> #include <xen/smp.h> +#include <xen/pfn.h> #include <asm/acpi.h> #include <xen/sched.h>
xen/arch/x86/setup.c +1 -0
@@ -20,6 +20,7 @@#include <xen/rcupdate.h> #include <xen/vga.h> #include <xen/dmi.h> +#include <xen/pfn.h> #include <xen/nodemask.h> #include <public/version.h> #ifdef CONFIG_COMPAT
xen/arch/x86/srat.c +1 -0
@@ -17,6 +17,7 @@#include <xen/nodemask.h> #include <xen/acpi.h> #include <xen/numa.h> +#include <xen/pfn.h> #include <asm/e820.h> #include <asm/page.h>
xen/arch/x86/tboot.c +1 -0
@@ -6,6 +6,7 @@#include <xen/domain_page.h> #include <xen/iommu.h> #include <xen/acpi.h> +#include <xen/pfn.h> #include <asm/fixmap.h> #include <asm/page.h> #include <asm/processor.h>
xen/include/asm-x86/page.h +0 -3
@@ -385,9 +385,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) -#endif /* __X86_PAGE_H__ */ /*
xen/include/xen/pci.h +1 -0
@@ -12,6 +12,7 @@#include <xen/list.h> #include <xen/spinlock.h> #include <xen/pci_regs.h> +#include <xen/pfn.h> #include <asm/page.h> /*
xen/include/xen/pfn.h new file +9 -0
@@ -0,0 +1,9 @@ +#ifndef __XEN_PFN_H__ +#define __XEN_PFN_H__ + +#include <asm/page.h> + +#define PFN_DOWN (x) ((x) >> PAGE_SHIFT) +#define PFN_UP (x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT) + +#endif /* __XEN_PFN_H__ */
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel