Skip to contentSkip to conversation

aspeed: include qemu/log.h

PATCH In review Paolo Bonzini 2 participants 2 messages May 20, 2016 Arm/Aspeed machine support

lore
Share & tools
lore
#0 lore raw

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.

---
 hw/intc/aspeed_vic.c    | 1 +
 hw/timer/aspeed_timer.c | 1 +
 2 files changed, 2 insertions(+)
hw/intc/aspeed_vic.c +1 -0
index 19a0ff7..725d5b6 100644
@@ -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
index ebec359..4b94808 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Paolo Bonzini

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.

---
 hw/intc/aspeed_vic.c    | 1 +
 hw/timer/aspeed_timer.c | 1 +
 2 files changed, 2 insertions(+)

thanks
-- PMM