[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] xen: Constify pointer argument of HYPERVISOR_callback_op
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1200672804 0 # Node ID dfb227e56a7279bb973f01c5f9047e114a11d14c # Parent 84cf06c69c78a3a31632a3a9a4c38d57acc6f898 xen: Constify pointer argument of HYPERVISOR_callback_op Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx> --- arch/x86_64/ia32/syscall32-xen.c | 4 ++-- include/asm-i386/mach-xen/asm/hypercall.h | 2 +- include/asm-x86_64/mach-xen/asm/hypercall.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff -r 84cf06c69c78 -r dfb227e56a72 arch/x86_64/ia32/syscall32-xen.c --- a/arch/x86_64/ia32/syscall32-xen.c Fri Jan 18 16:12:45 2008 +0000 +++ b/arch/x86_64/ia32/syscall32-xen.c Fri Jan 18 16:13:24 2008 +0000 @@ -112,11 +112,11 @@ core_initcall(init_syscall32); /* May not be __init: called during resume */ void syscall32_cpu_init(void) { - static struct callback_register cstar = { + static const struct callback_register cstar = { .type = CALLBACKTYPE_syscall32, .address = (unsigned long)ia32_cstar_target }; - static struct callback_register sysenter = { + static const struct callback_register sysenter = { .type = CALLBACKTYPE_sysenter, .address = (unsigned long)ia32_sysenter_target }; diff -r 84cf06c69c78 -r dfb227e56a72 include/asm-i386/mach-xen/asm/hypercall.h --- a/include/asm-i386/mach-xen/asm/hypercall.h Fri Jan 18 16:12:45 2008 +0000 +++ b/include/asm-i386/mach-xen/asm/hypercall.h Fri Jan 18 16:13:24 2008 +0000 @@ -384,7 +384,7 @@ HYPERVISOR_hvm_op( static inline int HYPERVISOR_callback_op( - int cmd, void *arg) + int cmd, const void *arg) { return _hypercall2(int, callback_op, cmd, arg); } diff -r 84cf06c69c78 -r dfb227e56a72 include/asm-x86_64/mach-xen/asm/hypercall.h --- a/include/asm-x86_64/mach-xen/asm/hypercall.h Fri Jan 18 16:12:45 2008 +0000 +++ b/include/asm-x86_64/mach-xen/asm/hypercall.h Fri Jan 18 16:13:24 2008 +0000 @@ -385,7 +385,7 @@ HYPERVISOR_hvm_op( static inline int HYPERVISOR_callback_op( - int cmd, void *arg) + int cmd, const void *arg) { return _hypercall2(int, callback_op, cmd, arg); } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |