|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] linux: do_set_trap_table()'s argument can be const t
As usual, written and tested on 2.6.24-rc7 and made apply to the 2.6.18
tree without further testing.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
Index: head-2008-01-08/arch/i386/kernel/traps-xen.c
===================================================================
--- head-2008-01-08.orig/arch/i386/kernel/traps-xen.c 2008-01-08
12:26:11.000000000 +0100
+++ head-2008-01-08/arch/i386/kernel/traps-xen.c 2008-01-08
12:26:40.000000000 +0100
@@ -1197,7 +1197,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;
Index: head-2008-01-08/arch/x86_64/kernel/traps-xen.c
===================================================================
--- head-2008-01-08.orig/arch/x86_64/kernel/traps-xen.c 2008-01-08
12:26:15.000000000 +0100
+++ head-2008-01-08/arch/x86_64/kernel/traps-xen.c 2008-01-08
12:26:40.000000000 +0100
@@ -1205,7 +1205,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;
Index: head-2007-12-11/include/asm-i386/mach-xen/asm/hypercall.h
===================================================================
--- head-2007-12-11.orig/include/asm-i386/mach-xen/asm/hypercall.h
2007-12-11 11:45:14.000000000 +0100
+++ head-2007-12-11/include/asm-i386/mach-xen/asm/hypercall.h 2007-12-18
14:41:33.000000000 +0100
@@ -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);
}
Index: head-2007-12-11/include/asm-x86_64/mach-xen/asm/hypercall.h
===================================================================
--- head-2007-12-11.orig/include/asm-x86_64/mach-xen/asm/hypercall.h
2007-12-11 11:45:14.000000000 +0100
+++ head-2007-12-11/include/asm-x86_64/mach-xen/asm/hypercall.h 2007-12-18
14:41:36.000000000 +0100
@@ -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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] linux: do_set_trap_table()'s argument can be const too,
Jan Beulich <=
|
|
|
|
|