[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] linux, ia64, xencomm: fix 1018:b7eb9756e522



Hi,

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 <kuwa@xxxxxxxxxxxxxx>
-- 
  KUWAMURA Shin'ya
# HG changeset patch
# User KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
# Date 1276223038 -32400
# Node ID 5db45807d9b67b749effe8f246316293ee1fcec9
# Parent  8af51a7a64c72b66debc8f312affc37d156649d6
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

Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>

diff -r 8af51a7a64c7 -r 5db45807d9b6 arch/ia64/xen/xcom_privcmd.c
--- a/arch/ia64/xen/xcom_privcmd.c      Mon Jun 07 06:57:35 2010 +0100
+++ b/arch/ia64/xen/xcom_privcmd.c      Fri Jun 11 11:23:58 2010 +0900
@@ -282,16 +282,6 @@ xencomm_privcmd_sysctl(privcmd_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),
@@ -303,6 +293,16 @@ xencomm_privcmd_sysctl(privcmd_hypercall
                set_xen_guest_handle(kern_op.u.cpupool_op.cpumap.bitmap,
                                     (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);
 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.