[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 08/33] vl: Add missing "hw/boards.h" include
From: |
Laurent Vivier |
Subject: |
[PULL 08/33] vl: Add missing "hw/boards.h" include |
Date: |
Mon, 9 Mar 2020 16:08:12 +0100 |
From: Philippe Mathieu-Daudé <address@hidden>
vl.c calls machine_usb() declared in "hw/boards.h". Include it.
This fixes (when modifying unrelated headers):
vl.c:1283:10: error: implicit declaration of function 'machine_usb' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (!machine_usb(current_machine)) {
^
vl.c:1283:10: error: this function declaration is not a prototype
[-Werror,-Wstrict-prototypes]
vl.c:1283:22: error: use of undeclared identifier 'current_machine'
if (!machine_usb(current_machine)) {
^
Acked-by: John Snow <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Laurent Vivier <address@hidden>
---
softmmu/vl.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/softmmu/vl.c b/softmmu/vl.c
index 5549f4b61986..ff2685dff845 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -25,6 +25,7 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/units.h"
+#include "hw/boards.h"
#include "hw/qdev-properties.h"
#include "qapi/error.h"
#include "qemu-version.h"
--
2.24.1
- [PULL 00/33] Trivial branch patches, Laurent Vivier, 2020/03/09
- [PULL 03/33] build-sys: Move the print-variable rule to rules.mak, Laurent Vivier, 2020/03/09
- [PULL 05/33] hw/net/e1000: Add readops/writeops typedefs, Laurent Vivier, 2020/03/09
- [PULL 06/33] hw/net/e1000: Move macreg[] arrays to .rodata to save 1MiB of .data, Laurent Vivier, 2020/03/09
- [PULL 04/33] hw/audio/fmopl: Fix a typo twice, Laurent Vivier, 2020/03/09
- [PULL 08/33] vl: Add missing "hw/boards.h" include,
Laurent Vivier <=
- [PULL 02/33] maint: Include top-level *.rst files early in git diff, Laurent Vivier, 2020/03/09
- [PULL 11/33] hw/timer: Remove unused "ui/console.h" header, Laurent Vivier, 2020/03/09
- [PULL 12/33] hw/usb/dev-storage: Remove unused "ui/console.h" header, Laurent Vivier, 2020/03/09
- [PULL 01/33] dp8393x: Mask EOL bit from descriptor addresses, take 2, Laurent Vivier, 2020/03/09
- [PULL 09/33] hw/southbridge/ich9: Removed unused headers, Laurent Vivier, 2020/03/09
- [PULL 19/33] hw/pci-host/q35: Include "qemu/range.h", Laurent Vivier, 2020/03/09
- [PULL 15/33] hw/alpha/dp264: Include "net/net.h", Laurent Vivier, 2020/03/09
- [PULL 13/33] hw/i386/intel_iommu: Remove unused includes, Laurent Vivier, 2020/03/09
- [PULL 17/33] hw/acpi/cpu_hotplug: Include "hw/pci/pci.h", Laurent Vivier, 2020/03/09
- [PULL 14/33] hw/alpha/alpha_sys: Remove unused "hw/ide.h" header, Laurent Vivier, 2020/03/09