[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 01/18] vl: Add missing "hw/boards.h" include
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 01/18] vl: Add missing "hw/boards.h" include |
Date: |
Fri, 28 Feb 2020 12:46:32 +0100 |
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>
---
softmmu/vl.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/softmmu/vl.c b/softmmu/vl.c
index 16ff5a16a3..20b7201451 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.21.1
- [PATCH v2 00/18] hw: Clean up hw/i386 headers (and few alpha/hppa), Philippe Mathieu-Daudé, 2020/02/28
- [PATCH v2 01/18] vl: Add missing "hw/boards.h" include,
Philippe Mathieu-Daudé <=
- [PATCH v2 02/18] hw/southbridge/ich9: Removed unused headers, Philippe Mathieu-Daudé, 2020/02/28
- [PATCH v2 03/18] hw/i386/ioapic_internal: Remove unused "hw/i386/ioapic.h" header, Philippe Mathieu-Daudé, 2020/02/28
- [PATCH v2 04/18] hw/timer: Remove unused "ui/console.h" header, Philippe Mathieu-Daudé, 2020/02/28
- [PATCH v2 05/18] hw/usb/dev-storage: Remove unused "ui/console.h" header, Philippe Mathieu-Daudé, 2020/02/28
- [PATCH v2 06/18] hw/i386/intel_iommu: Remove unused includes, Philippe Mathieu-Daudé, 2020/02/28
- [PATCH v2 07/18] hw/alpha/alpha_sys: Remove unused "hw/ide.h" header, Philippe Mathieu-Daudé, 2020/02/28
- [PATCH v2 08/18] hw/alpha/dp264: Include "net/net.h", Philippe Mathieu-Daudé, 2020/02/28
- [PATCH v2 11/18] hw/timer/hpet: Include "exec/address-spaces.h", Philippe Mathieu-Daudé, 2020/02/28
- [PATCH v2 09/18] hw/hppa/machine: Include "net/net.h", Philippe Mathieu-Daudé, 2020/02/28