Skip to content

Commit

Permalink
linux-user: Fix compilation failure
Browse files Browse the repository at this point in the history
Fix compilation failures for linux-user targets following recent
migration related commits bd2fa51 and 43487c6.

Signed-off-by: Peter Maydell <[email protected]>
Message-id: [email protected]
Signed-off-by: Anthony Liguori <[email protected]>
  • Loading branch information
pm215 authored and Anthony Liguori committed Jun 27, 2013
1 parent c394ace commit ec3f8c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -2629,7 +2629,6 @@ bool cpu_physical_memory_is_io(hwaddr phys_addr)
return !(memory_region_is_ram(mr) ||
memory_region_is_romd(mr));
}
#endif

void qemu_ram_foreach_block(RAMBlockIterFunc func, void *opaque)
{
Expand All @@ -2639,3 +2638,4 @@ void qemu_ram_foreach_block(RAMBlockIterFunc func, void *opaque)
func(block->host, block->offset, block->length, opaque);
}
}
#endif
1 change: 0 additions & 1 deletion include/hw/hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "exec/ioport.h"
#include "hw/irq.h"
#include "block/aio.h"
#include "migration/qemu-file.h"
#include "migration/vmstate.h"
#include "qemu/log.h"

Expand Down
2 changes: 2 additions & 0 deletions include/migration/vmstate.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
#ifndef QEMU_VMSTATE_H
#define QEMU_VMSTATE_H 1

#ifndef CONFIG_USER_ONLY
#include <migration/qemu-file.h>
#endif

typedef void SaveStateHandler(QEMUFile *f, void *opaque);
typedef int LoadStateHandler(QEMUFile *f, void *opaque, int version_id);
Expand Down

0 comments on commit ec3f8c9

Please sign in to comment.