hw/arm/virt: Include 'system/system.h'
PATCH 1/1 hw/arm/virt: Include 'system/system.h'
hw/arm/virt.c should include 'system/system.h' for :
serial_hd()
qemu_add_machine_init_done_notifier()
--- hw/arm/virt.c | 1 + 1 file changed, 1 insertion(+)
hw/arm/virt.c +1 -0
@@ -50,6 +50,7 @@#include "system/kvm.h" #include "system/hvf.h" #include "system/qtest.h" +#include "system/system.h" #include "hw/loader.h" #include "qapi/error.h" #include "qemu/bitops.h"
Signature · 1 line
2.50.1
Quoted 16 lines · Cédric Le Goater
hw/arm/virt.cshould include 'system/system.h' for :
serial_hd()
qemu_add_machine_init_done_notifier()Signed-off-by Cédric Le Goater <[email protected]>--- hw/arm/virt.c | 1 + 1 file changed, 1 insertion(+)hw/arm/virt.c +0
-0
hw/arm/virt.c line 56
Quoted 7 lines
hw/arm/virt.c +1
-0@@ -50,6 +50,7 @@#include "system/kvm.h" #include "system/hvf.h" #include "system/qtest.h" +#include "system/system.h" #include "hw/loader.h" #include "qapi/error.h" #include "qemu/bitops.h"
Presumably we're currently pulling in this header indirectly via some other header (the vfio ones)? Might be helpful to say which.
If this is a dependency for your vfio-platform removal patches, feel free to include it in there.
-- PMM
Quoted 12 lines · Peter Maydell
Quoted 11 lines · Cédric Le Goater
hw/arm/virt.cshould include 'system/system.h' for :serial_hd() qemu_add_machine_init_done_notifier()Signed-off-by Cédric Le Goater <[email protected]>--- hw/arm/virt.c | 1 + 1 file changed, 1 insertion(+)
Quoted 15 lines
hw/arm/virt.c line 56
Quoted 12 lines
hw/arm/virt.c +1
-0@@ -50,6 +50,7 @@#include "system/kvm.h" #include "system/hvf.h" #include "system/qtest.h" +#include "system/system.h" #include "hw/loader.h" #include "qapi/error.h" #include "qemu/bitops.h" Presumably we're currently pulling in this header
indirectly via some other header (the vfio ones)?
yes.
Quoted 4 lines
Might be helpful to say which.
If this is a dependency for your vfio-platform removal patches, feel free to include it in there.
I will do that and improve the commit log.
Quoted 5 lines
Reviewed-by Peter Maydell <[email protected]>-- PMM
Thanks,
C.
Quoted 3 lines · Cédric Le Goater
hw/arm/virt.cshould include 'system/system.h' for :serial_hd()
3 other files miss it:
$ git grep -L system/system $(git grep -wl serial_hd) hw/arm/virt.c hw/isa/isa-superio.c hw/mips/loongson3_virt.c hw/mips/malta.c include/system/system.h
Anyhow,
Quoted 19 lines
qemu_add_machine_init_done_notifier()Signed-off-by Cédric Le Goater <[email protected]>--- hw/arm/virt.c | 1 + 1 file changed, 1 insertion(+)hw/arm/virt.c +1
-0@@ -50,6 +50,7 @@#include "system/kvm.h" #include "system/hvf.h" #include "system/qtest.h" +#include "system/system.h" #include "hw/loader.h" #include "qapi/error.h" #include "qemu/bitops.h"
Quoted 5 lines · Philippe Mathieu-Daudé
Quoted 3 lines · Cédric Le Goater
hw/arm/virt.cshould include 'system/system.h' for :
serial_hd()
Quoted 8 lines
3 other files miss it:
$ git grep -L system/system $(git grep -wl serial_hd) hw/arm/virt.c hw/isa/isa-superio.c hw/mips/loongson3_virt.c hw/mips/malta.c include/system/system.h
OK. This deserves a v2. Will work on it.
Thanks,
C.