[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 01/20] vl: Add missing "hw/boards.h" include
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 01/20] vl: Add missing "hw/boards.h" include |
Date: |
Mon, 14 Oct 2019 16:22:27 +0200 |
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)) {
^
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
vl.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/vl.c b/vl.c
index 002bf4919e..e85b31df1b 100644
--- a/vl.c
+++ b/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.0
- [PATCH 00/20] hw: Clean up hw/i386 headers (and few alpha/hppa), Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 01/20] vl: Add missing "hw/boards.h" include,
Philippe Mathieu-Daudé <=
- [PATCH 02/20] hw/southbridge/ich9: Removed unused headers, Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 03/20] hw/input/pckbd: Remove unused "hw/i386/pc.h" header, Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 04/20] hw/i386/ioapic_internal: Remove unused "hw/i386/ioapic.h" header, Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 05/20] hw/timer: Remove unused "ui/console.h" header, Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 06/20] hw/usb/dev-storage: Remove unused "ui/console.h" header, Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 07/20] hw/i386/intel_iommu: Remove unused includes, Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 08/20] hw/xen/xen_pt_load_rom: Remove unused includes, Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 09/20] hw/alpha/alpha_sys: Remove unused "hw/ide.h" header, Philippe Mathieu-Daudé, 2019/10/14