qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] hw/arm/virt-acpi-build.c: Add missing header


From: Peng Liang
Subject: Re: [PATCH] hw/arm/virt-acpi-build.c: Add missing header
Date: Thu, 6 Jul 2023 23:11:57 +0800
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0

I'm not sure whether the error has already been fixed by others or not. If so, please just ignore this patch.

On 07/06/2023 23:08, Peng Liang wrote:
virt-acpi-build.c uses warn_report. However, it doesn't include
qemu/error-report.h directly, it include qemu/error-report.h via trace.h
if we enable log trace backend. But if we disable the log trace backend
(e.g., --enable-trace-backends=nop), then virt-acpi-build.c will not
include qemu/error-report.h any more and it will lead to build errors.
Include qemu/error-report.h directly in virt-acpi-build.c to avoid the
errors.

Signed-off-by: Peng Liang <tcx4c70@gmail.com>
---
  hw/arm/virt-acpi-build.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c
index 55f2706bc9..44cf9f3312 100644
--- a/hw/arm/virt-acpi-build.c
+++ b/hw/arm/virt-acpi-build.c
@@ -57,6 +57,7 @@
  #include "migration/vmstate.h"
  #include "hw/acpi/ghes.h"
  #include "hw/acpi/viot.h"
+#include "qemu/error-report.h"
#define ARM_SPI_BASE 32



reply via email to

[Prev in Thread] Current Thread [Next in Thread]