diff mbox

aspeed: include qemu/log.h

Message ID 1463745452-25831-2-git-send-email-pbonzini@redhat.com
State New
Headers show

Commit Message

Paolo Bonzini May 20, 2016, 11:57 a.m. UTC
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 <pbonzini@redhat.com>
---
 hw/intc/aspeed_vic.c    | 1 +
 hw/timer/aspeed_timer.c | 1 +
 2 files changed, 2 insertions(+)

Comments

Peter Maydell May 20, 2016, 12:07 p.m. UTC | #1
On 20 May 2016 at 12:57, Paolo Bonzini <pbonzini@redhat.com> wrote:
> 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 <pbonzini@redhat.com>
> ---
>  hw/intc/aspeed_vic.c    | 1 +
>  hw/timer/aspeed_timer.c | 1 +
>  2 files changed, 2 insertions(+)

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

thanks
-- PMM
diff mbox

Patch

diff --git a/hw/intc/aspeed_vic.c b/hw/intc/aspeed_vic.c
index 19a0ff7..725d5b6 100644
--- a/hw/intc/aspeed_vic.c
+++ b/hw/intc/aspeed_vic.c
@@ -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
diff --git a/hw/timer/aspeed_timer.c b/hw/timer/aspeed_timer.c
index ebec359..4b94808 100644
--- a/hw/timer/aspeed_timer.c
+++ b/hw/timer/aspeed_timer.c
@@ -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