From: "Jan Beulich" Subject: [PATCH] linux: do_set_trap_table()'s argument can be const too Date: Fri, 18 Jan 2008 15:22:31 +0000 Message-ID: <4790D247.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 Index: head-2008-01-08/arch/i386/kernel/traps-xen.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 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) =20 void smp_trap_init(trap_info_t *trap_ctxt) { - trap_info_t *t =3D trap_table; + const trap_info_t *t =3D trap_table; =20 for (t =3D trap_table; t->address; t++) { trap_ctxt[t->vector].flags =3D t->flags; Index: head-2008-01-08/arch/x86_64/kernel/traps-xen.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 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) =20 void smp_trap_init(trap_info_t *trap_ctxt) { - trap_info_t *t =3D trap_table; + const trap_info_t *t =3D trap_table; =20 for (t =3D trap_table; t->address; t++) { trap_ctxt[t->vector].flags =3D t->flags; Index: head-2007-12-11/include/asm-i386/mach-xen/asm/hypercall.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 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 @@ =20 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 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 @@ =20 static inline int HYPERVISOR_set_trap_table( - trap_info_t *table) + const trap_info_t *table) { return _hypercall1(int, set_trap_table, table); }