misc: Use QEMU header path relative to include/ directory
PATCH 1/1 misc: Use QEMU header path relative to include/ directory
QEMU headers are relative to the include/ directory, not to the project root directory. Remove "include/".
See also:
https://www.qemu.org/docs/master/devel/style.html#include-directives
--- hw/audio/virtio-snd.c | 2 +- hw/rtc/ls7a_rtc.c | 2 +- target/i386/gdbstub.c | 2 +- tests/qtest/nvme-test.c | 2 +- tests/qtest/ufs-test.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
hw/audio/virtio-snd.c +1 -1
@@ -19,7 +19,7 @@#include "qemu/iov.h" #include "qemu/log.h" #include "qemu/error-report.h" -#include "include/qemu/lockable.h" +#include "qemu/lockable.h" #include "exec/tswap.h" #include "sysemu/runstate.h" #include "trace.h"
hw/rtc/ls7a_rtc.c +1 -1
@@ -8,7 +8,7 @@#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/irq.h" -#include "include/hw/register.h" +#include "hw/register.h" #include "qemu/timer.h" #include "sysemu/sysemu.h" #include "qemu/cutils.h"
target/i386/gdbstub.c +1 -1
@@ -19,7 +19,7 @@*/ #include "qemu/osdep.h" #include "cpu.h" -#include "include/gdbstub/helpers.h" +#include "gdbstub/helpers.h" #ifdef TARGET_X86_64 static const int gpr_map[16] = {
tests/qtest/nvme-test.c +1 -1
@@ -13,7 +13,7 @@#include "libqtest.h" #include "libqos/qgraph.h" #include "libqos/pci.h" -#include "include/block/nvme.h" +#include "block/nvme.h" typedef struct QNvme QNvme ;
tests/qtest/ufs-test.c +1 -1
@@ -13,7 +13,7 @@#include "libqos/qgraph.h" #include "libqos/pci.h" #include "scsi/constants.h" -#include "include/block/ufs.h" +#include "block/ufs.h" /* Test images sizes in Bytes */ #define TEST_IMAGE_SIZE (64 * 1024 * 1024)
Signature · 1 line
2.41.0
Quoted 7 lines · Philippe Mathieu-Daudé
QEMU headers are relative to the
include/directory, not to the project root directory. Remove "include/".See also:
https://www.qemu.org/docs/master/devel/style.html#include-directives
Quoted 7 lines
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/audio/virtio-snd.c | 2 +- hw/rtc/ls7a_rtc.c | 2 +- target/i386/gdbstub.c | 2 +- tests/qtest/nvme-test.c | 2 +- tests/qtest/ufs-test.c | 2 +-
thanks
-- PMM
Quoted 6 lines · Philippe Mathieu-Daudé
QEMU headers are relative to the
include/directory, not to the project root directory. Remove "include/".See also:
https://www.qemu.org/docs/master/devel/style.html#include-directives
Quoted 8 lines
Signed-off-by Philippe Mathieu-Daudé<[email protected]>--- hw/audio/virtio-snd.c | 2 +- hw/rtc/ls7a_rtc.c | 2 +- target/i386/gdbstub.c | 2 +- tests/qtest/nvme-test.c | 2 +- tests/qtest/ufs-test.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
Quoted 6 lines · Philippe Mathieu-Daudé
QEMU headers are relative to the
include/directory, not to the project root directory. Remove "include/".See also:
https://www.qemu.org/docs/master/devel/style.html#include-directives
Quoted 8 lines
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/audio/virtio-snd.c | 2 +- hw/rtc/ls7a_rtc.c | 2 +- target/i386/gdbstub.c | 2 +- tests/qtest/nvme-test.c | 2 +- tests/qtest/ufs-test.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
Thanks, patch queued to hw-misc tree.