From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Usb1k-0007Wi-UU for qemu-devel@nongnu.org; Fri, 28 Jun 2013 11:56:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Usb1i-0003eL-KF for qemu-devel@nongnu.org; Fri, 28 Jun 2013 11:56:00 -0400 Received: from cantor2.suse.de ([195.135.220.15]:44123 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Usb1i-0003dn-4l for qemu-devel@nongnu.org; Fri, 28 Jun 2013 11:55:58 -0400 Received: from relay1.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 634B2A5511 for ; Fri, 28 Jun 2013 17:55:57 +0200 (CEST) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Fri, 28 Jun 2013 17:55:28 +0200 Message-Id: <1372434946-18489-7-git-send-email-afaerber@suse.de> In-Reply-To: <1372434946-18489-1-git-send-email-afaerber@suse.de> References: <1372434946-18489-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] [PULL 06/24] 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?= 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). Reviewed-by: Juan Quintela Signed-off-by: Andreas F=C3=A4rber --- include/qemu-common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/qemu-common.h b/include/qemu-common.h index 3c91375..6010bba 100644 --- a/include/qemu-common.h +++ b/include/qemu-common.h @@ -279,8 +279,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.8.1.4