WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] linux: do_set_trap_table()'s argument can be const t

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] linux: do_set_trap_table()'s argument can be const too
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Fri, 18 Jan 2008 15:22:31 +0000
Delivery-date: Fri, 18 Jan 2008 07:22:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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 <=