From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1edz-0007kG-B9 for qemu-devel@nongnu.org; Sat, 02 Feb 2013 10:04:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U1edy-0005Zi-9K for qemu-devel@nongnu.org; Sat, 02 Feb 2013 10:04:39 -0500 Received: from cantor2.suse.de ([195.135.220.15]:42119 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1edy-0005ZW-2T for qemu-devel@nongnu.org; Sat, 02 Feb 2013 10:04:38 -0500 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sat, 2 Feb 2013 16:04:16 +0100 Message-Id: <1359817456-25561-7-git-send-email-afaerber@suse.de> In-Reply-To: <1359817456-25561-1-git-send-email-afaerber@suse.de> References: <1359817456-25561-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [RFC qom-cpu-next 6/6] cpu: Guard cpu_{save, load}() definitions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= , quintela@redhat.com A few targets already managed to implement cpu_save() and cpu_load() without defining CPU_SAVE_VERSION that causes them to be registered. Guard the prototypes with CPU_SAVE_VERSION to avoid this happening again until all targets are converted to VMState or QIDL. Signed-off-by: Andreas F=C3=A4rber --- include/qemu-common.h | 2 ++ 1 Datei ge=C3=A4ndert, 2 Zeilen hinzugef=C3=BCgt(+) diff --git a/include/qemu-common.h b/include/qemu-common.h index af2379f..ef8a3fd 100644 --- a/include/qemu-common.h +++ b/include/qemu-common.h @@ -276,8 +276,10 @@ bool tcg_enabled(void); void cpu_exec_init_all(void); =20 /* CPU save/load. */ +#ifdef CPU_SAVE_VERSION void cpu_save(QEMUFile *f, void *opaque); int cpu_load(QEMUFile *f, void *opaque, int version_id); +#endif =20 /* Unblock cpu */ void qemu_cpu_kick_self(void); --=20 1.7.10.4