diff mbox

hw/intc/arm_gicv3: Fix compilation with simple trace backend

Message ID 1466416634-9798-1-git-send-email-peter.maydell@linaro.org
State New
Headers show

Commit Message

Peter Maydell June 20, 2016, 9:57 a.m. UTC
Fix missing includes of qemu/log.h, which broke compilation with the
simple trace backend (the default backend pulls in log.h implicitly
via trace.h).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
In particular, this broke travis builds.
---
 hw/intc/arm_gicv3_dist.c   | 1 +
 hw/intc/arm_gicv3_redist.c | 1 +
 2 files changed, 2 insertions(+)

Comments

sergey.fedorov@linaro.org June 20, 2016, 10:22 a.m. UTC | #1
On 20/06/16 12:57, Peter Maydell wrote:
> Fix missing includes of qemu/log.h, which broke compilation with the
> simple trace backend (the default backend pulls in log.h implicitly
> via trace.h).
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

Tested-by: Sergey Fedorov <sergey.fedorov@linaro.org>
Reviewed-by: Sergey Fedorov <sergey.fedorov@linaro.org>

Thanks,
Sergey

> ---
> In particular, this broke travis builds.
> ---
>  hw/intc/arm_gicv3_dist.c   | 1 +
>  hw/intc/arm_gicv3_redist.c | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/hw/intc/arm_gicv3_dist.c b/hw/intc/arm_gicv3_dist.c
> index b977ae5..3ea3dd0 100644
> --- a/hw/intc/arm_gicv3_dist.c
> +++ b/hw/intc/arm_gicv3_dist.c
> @@ -10,6 +10,7 @@
>   */
>  
>  #include "qemu/osdep.h"
> +#include "qemu/log.h"
>  #include "trace.h"
>  #include "gicv3_internal.h"
>  
> diff --git a/hw/intc/arm_gicv3_redist.c b/hw/intc/arm_gicv3_redist.c
> index 55c25e8..2f60096 100644
> --- a/hw/intc/arm_gicv3_redist.c
> +++ b/hw/intc/arm_gicv3_redist.c
> @@ -10,6 +10,7 @@
>   */
>  
>  #include "qemu/osdep.h"
> +#include "qemu/log.h"
>  #include "trace.h"
>  #include "gicv3_internal.h"
>
Peter Maydell June 20, 2016, 11:53 a.m. UTC | #2
On 20 June 2016 at 11:22, Sergey Fedorov <sergey.fedorov@linaro.org> wrote:
> On 20/06/16 12:57, Peter Maydell wrote:
>> Fix missing includes of qemu/log.h, which broke compilation with the
>> simple trace backend (the default backend pulls in log.h implicitly
>> via trace.h).
>>
>> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
>
> Tested-by: Sergey Fedorov <sergey.fedorov@linaro.org>
> Reviewed-by: Sergey Fedorov <sergey.fedorov@linaro.org>

Thanks. Applied to master as a build fix.

-- PMM
diff mbox

Patch

diff --git a/hw/intc/arm_gicv3_dist.c b/hw/intc/arm_gicv3_dist.c
index b977ae5..3ea3dd0 100644
--- a/hw/intc/arm_gicv3_dist.c
+++ b/hw/intc/arm_gicv3_dist.c
@@ -10,6 +10,7 @@ 
  */
 
 #include "qemu/osdep.h"
+#include "qemu/log.h"
 #include "trace.h"
 #include "gicv3_internal.h"
 
diff --git a/hw/intc/arm_gicv3_redist.c b/hw/intc/arm_gicv3_redist.c
index 55c25e8..2f60096 100644
--- a/hw/intc/arm_gicv3_redist.c
+++ b/hw/intc/arm_gicv3_redist.c
@@ -10,6 +10,7 @@ 
  */
 
 #include "qemu/osdep.h"
+#include "qemu/log.h"
 #include "trace.h"
 #include "gicv3_internal.h"