From patchwork Thu Dec 27 09:40:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wayne Xia X-Patchwork-Id: 208290 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 741E62C00D2 for ; Thu, 27 Dec 2012 20:42:08 +1100 (EST) Received: from localhost ([::1]:51048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1To9yY-0001Zc-Kg for incoming@patchwork.ozlabs.org; Thu, 27 Dec 2012 04:42:06 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1To9xU-0007Ju-2Z for qemu-devel@nongnu.org; Thu, 27 Dec 2012 04:41:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1To9xT-0006w2-30 for qemu-devel@nongnu.org; Thu, 27 Dec 2012 04:40:59 -0500 Received: from e23smtp04.au.ibm.com ([202.81.31.146]:48797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1To9xS-0006vs-D7 for qemu-devel@nongnu.org; Thu, 27 Dec 2012 04:40:59 -0500 Received: from /spool/local by e23smtp04.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 27 Dec 2012 19:34:03 +1000 Received: from d23dlp01.au.ibm.com (202.81.31.203) by e23smtp04.au.ibm.com (202.81.31.210) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 27 Dec 2012 19:34:02 +1000 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [9.190.235.152]) by d23dlp01.au.ibm.com (Postfix) with ESMTP id E2DF52CE804A for ; Thu, 27 Dec 2012 20:40:51 +1100 (EST) Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qBR9TSJi4718908 for ; Thu, 27 Dec 2012 20:29:28 +1100 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qBR9eoUS026276 for ; Thu, 27 Dec 2012 20:40:51 +1100 Received: from RedHat62GAWSWenchao (wenchaox.cn.ibm.com [9.115.122.122] (may be forged)) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id qBR9eFG8025504; Thu, 27 Dec 2012 20:40:49 +1100 From: Wenchao Xia To: qemu-devel@nongnu.org Date: Thu, 27 Dec 2012 17:40:26 +0800 Message-Id: <1356601227-8707-4-git-send-email-xiawenc@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1356601227-8707-1-git-send-email-xiawenc@linux.vnet.ibm.com> References: <1356601227-8707-1-git-send-email-xiawenc@linux.vnet.ibm.com> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12122709-9264-0000-0000-000002E87433 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 202.81.31.146 Cc: aliguori@us.ibm.com, chenwj@iis.sinica.edu.tw, armbru@redhat.com, lcapitulino@redhat.com, pbonzini@redhat.com, Wenchao Xia Subject: [Qemu-devel] [PATCH V3 3/4] HMP: move define of mon_cmds X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Because mon_cmds may use info_cmds, so adjust the declare sequence of them. Signed-off-by: Wenchao Xia --- monitor.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/monitor.c b/monitor.c index e4d4c59..a392df4 100644 --- a/monitor.c +++ b/monitor.c @@ -2422,12 +2422,6 @@ int monitor_handle_fd_param(Monitor *mon, const char *fdname) return fd; } -/* mon_cmds and info_cmds would be sorted at runtime */ -static mon_cmd_t mon_cmds[] = { -#include "hmp-commands.h" - { NULL, NULL, }, -}; - /* Please update hmp-commands.hx when adding or changing commands */ static mon_cmd_t info_cmds[] = { { @@ -2741,6 +2735,12 @@ static mon_cmd_t info_cmds[] = { }, }; +/* mon_cmds and info_cmds would be sorted at runtime */ +static mon_cmd_t mon_cmds[] = { +#include "hmp-commands.h" + { NULL, NULL, }, +}; + static const mon_cmd_t qmp_cmds[] = { #include "qmp-commands-old.h" { /* NULL */ },