Skip to content

Commit 13a6374

Browse files
tcx4c70Michael Tokarev
authored andcommitted
hw/arm/virt-acpi-build.c: Add missing header
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. Fixes: 451b157 ("acpi: Align the size to 128k") Signed-off-by: Peng Liang <[email protected]> Reviewed-by: Ani Sinha <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Signed-off-by: Michael Tokarev <[email protected]> (mjt: move the #include higher as suggested by Ani Sinha)
1 parent aaf26bd commit 13a6374

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hw/arm/virt-acpi-build.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include "qemu/osdep.h"
3030
#include "qapi/error.h"
3131
#include "qemu/bitmap.h"
32+
#include "qemu/error-report.h"
3233
#include "trace.h"
3334
#include "hw/core/cpu.h"
3435
#include "target/arm/cpu.h"

0 commit comments

Comments
 (0)