aspeed: include qemu/log.h
PATCH 1/1 aspeed: include qemu/log.h
This is not visible with the default "log" trace backend. With other backends however trace.h does not include qemu/log.h, resulting in build failures.
Signed-off-by Paolo Bonzini <[email protected]>
--- hw/intc/aspeed_vic.c | 1 + hw/timer/aspeed_timer.c | 1 + 2 files changed, 2 insertions(+)
hw/intc/aspeed_vic.c +1 -0
@@ -31,6 +31,7 @@#include <inttypes.h> #include "hw/intc/aspeed_vic.h" #include "qemu/bitops.h" +#include "qemu/log.h" #include "trace.h" #define AVIC_NEW_BASE_OFFSET 0x80
hw/timer/aspeed_timer.c +1 -0
@@ -17,6 +17,7 @@#include "qemu/bitops.h" #include "qemu/main-loop.h" #include "qemu/timer.h" +#include "qemu/log.h" #include "trace.h" #define TIMER_NR_REGS 4
Signature · 1 line
1.8.3.1
Quoted 9 lines · Paolo Bonzini
This is not visible with the default "log" trace backend. With other backends however
trace.hdoes not includeqemu/log.h, resulting in build failures.Signed-off-by Paolo Bonzini <[email protected]>--- hw/intc/aspeed_vic.c | 1 + hw/timer/aspeed_timer.c | 1 + 2 files changed, 2 insertions(+)
Reviewed-by Peter Maydell <[email protected]>
thanks
-- PMM