aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/platform_hypercall.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-08-29 16:11:05 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-08-29 16:11:05 +0100
commit8565e53aba37c480486ba3b7ba6c00688d152360 (patch)
tree01f0cfa4d43f488b9d39a73077f192e7d952b3c0 /xen/arch/x86/platform_hypercall.c
parent65c1f4b9ec1a6023106d40505d42406f23ccf544 (diff)
downloadxen-8565e53aba37c480486ba3b7ba6c00688d152360.tar.gz
xen-8565e53aba37c480486ba3b7ba6c00688d152360.tar.bz2
xen-8565e53aba37c480486ba3b7ba6c00688d152360.zip
x86: constify microcode hypercall argument
Linux 2.6.27 marks the data pointer in its firmware struct 'const', and hence, to avoid a compiler warning, Xen's microcode update interface should be properly properly constified too. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/platform_hypercall.c')
-rw-r--r--xen/arch/x86/platform_hypercall.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xen/arch/x86/platform_hypercall.c b/xen/arch/x86/platform_hypercall.c
index b93dc71a23..571f412b04 100644
--- a/xen/arch/x86/platform_hypercall.c
+++ b/xen/arch/x86/platform_hypercall.c
@@ -147,8 +147,7 @@ ret_t do_platform_op(XEN_GUEST_HANDLE(xen_platform_op_t) u_xenpf_op)
case XENPF_microcode_update:
{
- extern int microcode_update(XEN_GUEST_HANDLE(void), unsigned long len);
- XEN_GUEST_HANDLE(void) data;
+ XEN_GUEST_HANDLE(const_void) data;
ret = xsm_microcode();
if ( ret )