Switch files in the hw/mem/ directory to include the hw/mem/trace.h file instead of the global trace.h file.
Signed-off-by: Daniel P. Berrange <berra...@redhat.com> --- Makefile.objs | 2 +- hw/mem/Makefile.objs | 3 +++ hw/mem/pc-dimm.c | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index a901f5d..89953e5 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -142,7 +142,7 @@ trace-events-subdirs += hw/dma trace-events-subdirs += hw/sparc trace-events-subdirs += hw/sd trace-events-subdirs += hw/isa -trace-events-y += hw/mem/trace-events +trace-events-subdirs += hw/mem trace-events-y += hw/i386/trace-events trace-events-y += hw/9pfs/trace-events trace-events-y += hw/ppc/trace-events diff --git a/hw/mem/Makefile.objs b/hw/mem/Makefile.objs index f12f8b9..ae1f513 100644 --- a/hw/mem/Makefile.objs +++ b/hw/mem/Makefile.objs @@ -1,2 +1,5 @@ common-obj-$(CONFIG_MEM_HOTPLUG) += pc-dimm.o common-obj-$(CONFIG_NVDIMM) += nvdimm.o + +trace-obj-y += trace.o +trace-obj-$(CONFIG_TRACE_DTRACE) += trace-dtrace.o diff --git a/hw/mem/pc-dimm.c b/hw/mem/pc-dimm.c index 9e8dab0..bcbaa32 100644 --- a/hw/mem/pc-dimm.c +++ b/hw/mem/pc-dimm.c @@ -26,7 +26,7 @@ #include "qemu/range.h" #include "sysemu/numa.h" #include "sysemu/kvm.h" -#include "trace.h" +#include "hw/mem/trace.h" #include "hw/virtio/vhost.h" typedef struct pc_dimms_capacity { -- 2.9.3