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] ia64, xencomm: fix 1018:b7eb9756e522

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] ia64, xencomm: fix 1018:b7eb9756e522
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 11 Jun 2010 07:25:44 -0700
Delivery-date: Fri, 11 Jun 2010 07:28:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 1276245445 -3600
# Node ID a24d8631a0007dcb31b128452c6162ea796b05aa
# 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

Since 1018:b7eb9756e522 inserted lines in outside of a switch
statement. This patch corrects it.

Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
---
 arch/ia64/xen/xcom_privcmd.c |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff -r 8af51a7a64c7 -r a24d8631a000 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 09:37:25 2010 +0100
@@ -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-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] ia64, xencomm: fix 1018:b7eb9756e522, Xen patchbot-linux-2.6.18-xen <=