]> git.proxmox.com Git - mirror_qemu.git/commitdiff
cpu: Guard cpu_{save,load}() definitions
authorAndreas Färber <afaerber@suse.de>
Sat, 2 Feb 2013 14:51:06 +0000 (15:51 +0100)
committerAndreas Färber <afaerber@suse.de>
Fri, 28 Jun 2013 11:25:12 +0000 (13:25 +0200)
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 <quintela@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
include/qemu-common.h

index 3c913758c9660d2c74a5e6fa60507349c626b1cd..6010bba204828eb5b4800ed6593b16ded29a97db 100644 (file)
@@ -279,8 +279,10 @@ bool tcg_enabled(void);
 void cpu_exec_init_all(void);
 
 /* 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
 
 /* Unblock cpu */
 void qemu_cpu_kick_self(void);