[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] HYPERVISOR_memory_op() needs to have "long" return type
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1415886667 -3600 # Node ID 6d727f2dcc8386e9658d84082f45633c08d992d1 # Parent 851b8fba77e7bc08cacab58c3ff277ed8473f048 HYPERVISOR_memory_op() needs to have "long" return type ... on 64-bit architectures. Otherwise using it with e.g. XENMEM_maximum_ram_page may truncate significant bits. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> --- diff -r 851b8fba77e7 -r 6d727f2dcc83 include/asm-ia64/hypercall.h --- a/include/asm-ia64/hypercall.h Tue Oct 07 11:56:56 2014 +0200 +++ b/include/asm-ia64/hypercall.h Thu Nov 13 14:51:07 2014 +0100 @@ -144,10 +144,10 @@ xencomm_arch_hypercall_multicall(struct return _hypercall2(int, multicall, call_list, nr_calls); } -static inline int +static inline long xencomm_arch_hypercall_memory_op(unsigned int cmd, struct xencomm_handle *arg) { - return _hypercall2(int, memory_op, cmd, arg); + return _hypercall2(long, memory_op, cmd, arg); } static inline int diff -r 851b8fba77e7 -r 6d727f2dcc83 include/asm-x86_64/mach-xen/asm/hypercall.h --- a/include/asm-x86_64/mach-xen/asm/hypercall.h Tue Oct 07 11:56:56 2014 +0200 +++ b/include/asm-x86_64/mach-xen/asm/hypercall.h Thu Nov 13 14:51:07 2014 +0100 @@ -248,11 +248,11 @@ HYPERVISOR_update_descriptor( return _hypercall2(int, update_descriptor, ma, word); } -static inline int __must_check +static inline long __must_check HYPERVISOR_memory_op( unsigned int cmd, void *arg) { - return _hypercall2(int, memory_op, cmd, arg); + return _hypercall2(long, memory_op, cmd, arg); } static inline int __must_check _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |