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-changelog

[Xen-changelog] [linux-2.6.18-xen] xen: Constify pointer argument of HYP

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] xen: Constify pointer argument of HYPERVISOR_callback_op
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 18 Jan 2008 16:30:11 -0800
Delivery-date: Fri, 18 Jan 2008 16:30:40 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] xen: Constify pointer argument of HYPERVISOR_callback_op, Xen patchbot-linux-2.6.18-xen <=