]> xenbits.xensource.com Git - xen.git/commitdiff
x86: modify hvm_memory_op() prototype
authorJuergen Gross <jgross@suse.com>
Wed, 24 Nov 2021 10:02:24 +0000 (11:02 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 24 Nov 2021 10:02:24 +0000 (11:02 +0100)
hvm_memory_op() should take an unsigned long as cmd, like
do_memory_op().

As hvm_memory_op() is basically just calling do_memory_op() (or
compat_memory_op()) passing through the parameters the cmd parameter
should have no smaller size than that of the called functions.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hypercall.c

index 122abf80de8da13f6cd44c13092f775aa4ff480e..63bed52e402d49b184568e7ea9f869399b715007 100644 (file)
@@ -31,7 +31,7 @@
 #include <public/hvm/hvm_op.h>
 #include <public/hvm/params.h>
 
-static long hvm_memory_op(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg)
+static long hvm_memory_op(unsigned long cmd, XEN_GUEST_HANDLE_PARAM(void) arg)
 {
     long rc;