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

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] linux, ia64, xencomm: fix 1018:b7eb9756e522
From: "KUWAMURA Shin'ya" <kuwa@xxxxxxxxxxxxxx>
Date: Fri, 11 Jun 2010 16:18:03 +0900 (JST)
Delivery-date: Fri, 11 Jun 2010 00:19:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] linux, ia64, xencomm: fix 1018:b7eb9756e522, KUWAMURA Shin'ya <=