From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHWwi-0004IU-4I for qemu-devel@nongnu.org; Fri, 08 Jan 2016 08:19:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHWwe-0006bH-Tt for qemu-devel@nongnu.org; Fri, 08 Jan 2016 08:19:12 -0500 Received: from mx2.parallels.com ([199.115.105.18]:39581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHWwe-0006b7-Ou for qemu-devel@nongnu.org; Fri, 08 Jan 2016 08:19:08 -0500 References: <1449240275-26196-1-git-send-email-den@openvz.org> <1449240275-26196-3-git-send-email-den@openvz.org> <567B14CE.90508@redhat.com> From: "Denis V. Lunev" Message-ID: <568FB744.6070305@openvz.org> Date: Fri, 8 Jan 2016 16:19:00 +0300 MIME-Version: 1.0 In-Reply-To: <567B14CE.90508@redhat.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 2/5] qmp: create qmp_savevm command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Amit Shah , Markus Armbruster , qemu-devel@nongnu.org, quintela@redhat.com On 12/24/2015 12:40 AM, Eric Blake wrote: > On 12/04/2015 07:44 AM, Denis V. Lunev wrote: >> 'name' attribute is made mandatory in distinction with HMP command. >> >> The patch also moves hmp_savevm implementation into hmp.c. This function >> is just a simple wrapper now and does not have knowledge about >> migration internals. >> >> Signed-off-by: Denis V. Lunev >> CC: Juan Quintela >> CC: Amit Shah >> CC: Markus Armbruster >> CC: Eric Blake >> --- >> hmp.c | 12 ++++++++++++ >> migration/savevm.c | 13 +------------ >> qapi-schema.json | 13 +++++++++++++ >> qmp-commands.hx | 25 +++++++++++++++++++++++++ >> 4 files changed, 51 insertions(+), 12 deletions(-) >> >> diff --git a/hmp.c b/hmp.c >> index 2140605..c9c7100 100644 >> --- a/hmp.c >> +++ b/hmp.c >> @@ -32,6 +32,7 @@ >> #include "ui/console.h" >> #include "block/qapi.h" >> #include "qemu-io.h" >> +#include "sysemu/sysemu.h" > What is this header needed for? > it contains prototype of hmp_savevm. The following warning appears without it: irbis ~/src/qemu $ make -j8 CC hmp.o hmp.c:2390:6: error: no previous prototype for ‘hmp_savevm’ [-Werror=missing-prototypes] void hmp_savevm(Monitor *mon, const QDict *qdict) ^ cc1: all warnings being treated as errors /home/den/src/qemu/rules.mak:57: recipe for target 'hmp.o' failed make: *** [hmp.o] Error 1 irbis ~/src/qemu $