Skip to content

Commit

Permalink
stubs: Add stubs for ram block API
Browse files Browse the repository at this point in the history
These functions will be wanted by block-obj-y but the actual definition
is in obj-y, so stub them to keep the linker happy.

Signed-off-by: Fam Zheng <[email protected]>
Acked-by: Paolo Bonzini <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
  • Loading branch information
Fam Zheng committed Feb 8, 2018
1 parent 709f213 commit a37eaa5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions stubs/Makefile.objs
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ stub-obj-y += vmgenid.o
stub-obj-y += xen-common.o
stub-obj-y += xen-hvm.o
stub-obj-y += pci-host-piix.o
stub-obj-y += ram-block.o
16 changes: 16 additions & 0 deletions stubs/ram-block.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include "qemu/osdep.h"
#include "exec/ramlist.h"
#include "exec/cpu-common.h"

void ram_block_notifier_add(RAMBlockNotifier *n)
{
}

void ram_block_notifier_remove(RAMBlockNotifier *n)
{
}

int qemu_ram_foreach_block(RAMBlockIterFunc func, void *opaque)
{
return 0;
}

0 comments on commit a37eaa5

Please sign in to comment.