From c5b8cbb139514e4e911a2f66de2a8146ce8c29fe Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 11 Jun 2010 09:37:25 +0100 Subject: [PATCH] ia64, xencomm: fix 1018:b7eb9756e522 This fixes the following errors: /arch/ia64/xen/xcom_privcmd.c: In function `xencomm_privcmd_sysctl': /arch/ia64/xen/xcom_privcmd.c:295: error: case label not within a switch statement /arch/ia64/xen/xcom_privcmd.c:305: error: break statement not within loop or switch Since 1018:b7eb9756e522 inserted lines in outside of a switch statement. This patch corrects it. Signed-off-by: KUWAMURA Shin'ya --- arch/ia64/xen/xcom_privcmd.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/ia64/xen/xcom_privcmd.c b/arch/ia64/xen/xcom_privcmd.c index 37742117..03f66304 100644 --- a/arch/ia64/xen/xcom_privcmd.c +++ b/arch/ia64/xen/xcom_privcmd.c @@ -282,16 +282,6 @@ xencomm_privcmd_sysctl(privcmd_hypercall_t *hypercall) break; } - default: - printk("%s: unknown sysctl cmd %d\n", __func__, kern_op.cmd); - return -ENOSYS; - } - - if (ret) { - /* error mapping the nested pointer */ - return ret; - } - case XEN_SYSCTL_cpupool_op: desc = xencomm_map( xen_guest_handle(kern_op.u.cpupool_op.cpumap.bitmap), @@ -304,6 +294,16 @@ xencomm_privcmd_sysctl(privcmd_hypercall_t *hypercall) (void *)desc); break; + default: + printk("%s: unknown sysctl cmd %d\n", __func__, kern_op.cmd); + return -ENOSYS; + } + + if (ret) { + /* error mapping the nested pointer */ + return ret; + } + ret = xencomm_arch_hypercall_sysctl(op_desc); /* FIXME: should we restore the handles? */ -- 2.39.5