[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] xen: do_set_trap_table()'s argument can be const



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1200672856 0
# Node ID 577f5e925da38574bd5ec04e7629ac88616a490e
# Parent  dfb227e56a7279bb973f01c5f9047e114a11d14c
xen: do_set_trap_table()'s argument can be const
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 arch/i386/kernel/traps-xen.c                |    2 +-
 arch/x86_64/kernel/traps-xen.c              |    2 +-
 include/asm-i386/mach-xen/asm/hypercall.h   |    2 +-
 include/asm-x86_64/mach-xen/asm/hypercall.h |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff -r dfb227e56a72 -r 577f5e925da3 arch/i386/kernel/traps-xen.c
--- a/arch/i386/kernel/traps-xen.c      Fri Jan 18 16:13:24 2008 +0000
+++ b/arch/i386/kernel/traps-xen.c      Fri Jan 18 16:14:16 2008 +0000
@@ -1153,7 +1153,7 @@ void __init trap_init(void)
 
 void smp_trap_init(trap_info_t *trap_ctxt)
 {
-       trap_info_t *t = trap_table;
+       const trap_info_t *t = trap_table;
 
        for (t = trap_table; t->address; t++) {
                trap_ctxt[t->vector].flags = t->flags;
diff -r dfb227e56a72 -r 577f5e925da3 arch/x86_64/kernel/traps-xen.c
--- a/arch/x86_64/kernel/traps-xen.c    Fri Jan 18 16:13:24 2008 +0000
+++ b/arch/x86_64/kernel/traps-xen.c    Fri Jan 18 16:14:16 2008 +0000
@@ -1133,7 +1133,7 @@ void __init trap_init(void)
 
 void smp_trap_init(trap_info_t *trap_ctxt)
 {
-       trap_info_t *t = trap_table;
+       const trap_info_t *t = trap_table;
 
        for (t = trap_table; t->address; t++) {
                trap_ctxt[t->vector].flags = t->flags;
diff -r dfb227e56a72 -r 577f5e925da3 include/asm-i386/mach-xen/asm/hypercall.h
--- a/include/asm-i386/mach-xen/asm/hypercall.h Fri Jan 18 16:13:24 2008 +0000
+++ b/include/asm-i386/mach-xen/asm/hypercall.h Fri Jan 18 16:14:16 2008 +0000
@@ -128,7 +128,7 @@
 
 static inline int
 HYPERVISOR_set_trap_table(
-       trap_info_t *table)
+       const trap_info_t *table)
 {
        return _hypercall1(int, set_trap_table, table);
 }
diff -r dfb227e56a72 -r 577f5e925da3 include/asm-x86_64/mach-xen/asm/hypercall.h
--- a/include/asm-x86_64/mach-xen/asm/hypercall.h       Fri Jan 18 16:13:24 
2008 +0000
+++ b/include/asm-x86_64/mach-xen/asm/hypercall.h       Fri Jan 18 16:14:16 
2008 +0000
@@ -134,7 +134,7 @@
 
 static inline int
 HYPERVISOR_set_trap_table(
-       trap_info_t *table)
+       const trap_info_t *table)
 {
        return _hypercall1(int, set_trap_table, table);
 }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.