diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2012-10-17 04:39:14 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:17:55 -0400 |
commit | ef32f89298c094b6ed76c0c4981b7a51e939cb71 (patch) | |
tree | 944cee088fd708167500c6c4a7ed4d87cad3f026 /arch | |
parent | bf86ad8095d4684ada0d37bb1355ede2c88a5e4e (diff) |
xen: grant: use xen_pfn_t type for frame_list.
This correctly sizes it as 64 bit on ARM but leaves it as unsigned
long on x86 (therefore no intended change on x86).
The long and ulong guest handles are now unused (and a bit dangerous)
so remove them.
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/include/asm/xen/interface.h | 2 | ||||
-rw-r--r-- | arch/arm/xen/grant-table.c | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/xen/interface.h | 2 |
3 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/include/asm/xen/interface.h b/arch/arm/include/asm/xen/interface.h index 62160f259b0e..1d6ef9c2d1d9 100644 --- a/arch/arm/include/asm/xen/interface.h +++ b/arch/arm/include/asm/xen/interface.h | |||
@@ -37,10 +37,8 @@ typedef uint64_t xen_ulong_t; | |||
37 | /* Guest handles for primitive C types. */ | 37 | /* Guest handles for primitive C types. */ |
38 | __DEFINE_GUEST_HANDLE(uchar, unsigned char); | 38 | __DEFINE_GUEST_HANDLE(uchar, unsigned char); |
39 | __DEFINE_GUEST_HANDLE(uint, unsigned int); | 39 | __DEFINE_GUEST_HANDLE(uint, unsigned int); |
40 | __DEFINE_GUEST_HANDLE(ulong, unsigned long); | ||
41 | DEFINE_GUEST_HANDLE(char); | 40 | DEFINE_GUEST_HANDLE(char); |
42 | DEFINE_GUEST_HANDLE(int); | 41 | DEFINE_GUEST_HANDLE(int); |
43 | DEFINE_GUEST_HANDLE(long); | ||
44 | DEFINE_GUEST_HANDLE(void); | 42 | DEFINE_GUEST_HANDLE(void); |
45 | DEFINE_GUEST_HANDLE(uint64_t); | 43 | DEFINE_GUEST_HANDLE(uint64_t); |
46 | DEFINE_GUEST_HANDLE(uint32_t); | 44 | DEFINE_GUEST_HANDLE(uint32_t); |
diff --git a/arch/arm/xen/grant-table.c b/arch/arm/xen/grant-table.c index dbd1330c0196..859a9bb002d5 100644 --- a/arch/arm/xen/grant-table.c +++ b/arch/arm/xen/grant-table.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include <xen/page.h> | 33 | #include <xen/page.h> |
34 | #include <xen/grant_table.h> | 34 | #include <xen/grant_table.h> |
35 | 35 | ||
36 | int arch_gnttab_map_shared(unsigned long *frames, unsigned long nr_gframes, | 36 | int arch_gnttab_map_shared(xen_pfn_t *frames, unsigned long nr_gframes, |
37 | unsigned long max_nr_gframes, | 37 | unsigned long max_nr_gframes, |
38 | void **__shared) | 38 | void **__shared) |
39 | { | 39 | { |
diff --git a/arch/x86/include/asm/xen/interface.h b/arch/x86/include/asm/xen/interface.h index c5b13e76d730..ca9487d4f176 100644 --- a/arch/x86/include/asm/xen/interface.h +++ b/arch/x86/include/asm/xen/interface.h | |||
@@ -57,10 +57,8 @@ typedef unsigned long xen_ulong_t; | |||
57 | /* Guest handles for primitive C types. */ | 57 | /* Guest handles for primitive C types. */ |
58 | __DEFINE_GUEST_HANDLE(uchar, unsigned char); | 58 | __DEFINE_GUEST_HANDLE(uchar, unsigned char); |
59 | __DEFINE_GUEST_HANDLE(uint, unsigned int); | 59 | __DEFINE_GUEST_HANDLE(uint, unsigned int); |
60 | __DEFINE_GUEST_HANDLE(ulong, unsigned long); | ||
61 | DEFINE_GUEST_HANDLE(char); | 60 | DEFINE_GUEST_HANDLE(char); |
62 | DEFINE_GUEST_HANDLE(int); | 61 | DEFINE_GUEST_HANDLE(int); |
63 | DEFINE_GUEST_HANDLE(long); | ||
64 | DEFINE_GUEST_HANDLE(void); | 62 | DEFINE_GUEST_HANDLE(void); |
65 | DEFINE_GUEST_HANDLE(uint64_t); | 63 | DEFINE_GUEST_HANDLE(uint64_t); |
66 | DEFINE_GUEST_HANDLE(uint32_t); | 64 | DEFINE_GUEST_HANDLE(uint32_t); |