misc: Correct relative include path
PATCH 1/1 misc: Correct relative include path
Headers should be included from the 'include/' directory, not from the root directory.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
--- hw/i386/acpi-common.h | 6 +++--- include/monitor/monitor.h | 2 +- hw/gpio/aspeed_gpio.c | 2 +- hw/intc/ppc-uic.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-)
hw/i386/acpi-common.h +3 -3
@@ -1,9 +1,9 @@#ifndef HW_I386_ACPI_COMMON_H #define HW_I386_ACPI_COMMON_H -#include "include/hw/acpi/acpi_dev_interface.h" -#include "include/hw/acpi/bios-linker-loader.h" -#include "include/hw/i386/x86.h" +#include "hw/acpi/acpi_dev_interface.h" +#include "hw/acpi/bios-linker-loader.h" +#include "hw/i386/x86.h" /* Default IOAPIC ID */ #define ACPI_BUILD_IOAPIC_ID 0x0
include/monitor/monitor.h +1 -1
@@ -4,7 +4,7 @@#include "block/block.h" #include "qapi/qapi-types-misc.h" #include "qemu/readline.h" -#include "include/exec/hwaddr.h" +#include "exec/hwaddr.h" typedef struct MonitorHMP MonitorHMP ;typedef struct MonitorOptions MonitorOptions ;
hw/gpio/aspeed_gpio.c +1 -1
@@ -10,7 +10,7 @@#include "qemu/host-utils.h" #include "qemu/log.h" #include "hw/gpio/aspeed_gpio.h" -#include "include/hw/misc/aspeed_scu.h" +#include "hw/misc/aspeed_scu.h" #include "qapi/error.h" #include "qapi/visitor.h" #include "hw/irq.h"
hw/intc/ppc-uic.c +1 -1
@@ -23,7 +23,7 @@*/ #include "qemu/osdep.h" -#include "include/hw/intc/ppc-uic.h" +#include "hw/intc/ppc-uic.h" #include "hw/irq.h" #include "cpu.h" #include "hw/ppc/ppc.h"
Signature · 1 line
2.26.3
Quoted 4 lines · Philippe Mathieu-Daudé
Headers should be included from the '
include/' directory, not from the root directory.
Quoted 8 lines
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/i386/acpi-common.h | 6 +++--- include/monitor/monitor.h | 2 +- hw/gpio/aspeed_gpio.c | 2 +- hw/intc/ppc-uic.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-)
Reviewed-by Bin Meng <[email protected]>
ping? (patch reviewed)
Quoted 68 lines · Philippe Mathieu-Daudé
Headers should be included from the '
include/' directory, not from the root directory.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/i386/acpi-common.h | 6 +++--- include/monitor/monitor.h | 2 +- hw/gpio/aspeed_gpio.c | 2 +- hw/intc/ppc-uic.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-)hw/i386/acpi-common.h +3
-3@@ -1,9 +1,9 @@#ifndef HW_I386_ACPI_COMMON_H #define HW_I386_ACPI_COMMON_H -#include "include/hw/acpi/acpi_dev_interface.h" -#include "include/hw/acpi/bios-linker-loader.h" -#include "include/hw/i386/x86.h" +#include "hw/acpi/acpi_dev_interface.h" +#include "hw/acpi/bios-linker-loader.h" +#include "hw/i386/x86.h" /* Default IOAPIC ID */ #define ACPI_BUILD_IOAPIC_ID 0x0include/monitor/monitor.h +1
-1@@ -4,7 +4,7 @@#include "block/block.h" #include "qapi/qapi-types-misc.h" #include "qemu/readline.h" -#include "include/exec/hwaddr.h" +#include "exec/hwaddr.h" typedef struct MonitorHMP MonitorHMP ;typedef struct MonitorOptions MonitorOptions ;hw/gpio/aspeed_gpio.c +1
-1@@ -10,7 +10,7 @@#include "qemu/host-utils.h" #include "qemu/log.h" #include "hw/gpio/aspeed_gpio.h" -#include "include/hw/misc/aspeed_scu.h" +#include "hw/misc/aspeed_scu.h" #include "qapi/error.h" #include "qapi/visitor.h" #include "hw/irq.h" hw/intc/ppc-uic.c +1
-1@@ -23,7 +23,7 @@*/ #include "qemu/osdep.h" -#include "include/hw/intc/ppc-uic.h" +#include "hw/intc/ppc-uic.h" #include "hw/irq.h" #include "cpu.h" #include "hw/ppc/ppc.h"
Laurent Vivier
AppliedLe 16/05/2021 à 22:50, Philippe Mathieu-Daudé a écrit :
Quoted 60 lines
Headers should be included from the '
include/' directory, not from the root directory.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/i386/acpi-common.h | 6 +++--- include/monitor/monitor.h | 2 +- hw/gpio/aspeed_gpio.c | 2 +- hw/intc/ppc-uic.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-)hw/i386/acpi-common.h +3
-3@@ -1,9 +1,9 @@#ifndef HW_I386_ACPI_COMMON_H #define HW_I386_ACPI_COMMON_H -#include "include/hw/acpi/acpi_dev_interface.h" -#include "include/hw/acpi/bios-linker-loader.h" -#include "include/hw/i386/x86.h" +#include "hw/acpi/acpi_dev_interface.h" +#include "hw/acpi/bios-linker-loader.h" +#include "hw/i386/x86.h" /* Default IOAPIC ID */ #define ACPI_BUILD_IOAPIC_ID 0x0include/monitor/monitor.h +1
-1@@ -4,7 +4,7 @@#include "block/block.h" #include "qapi/qapi-types-misc.h" #include "qemu/readline.h" -#include "include/exec/hwaddr.h" +#include "exec/hwaddr.h" typedef struct MonitorHMP MonitorHMP ;typedef struct MonitorOptions MonitorOptions ;hw/gpio/aspeed_gpio.c +1
-1@@ -10,7 +10,7 @@#include "qemu/host-utils.h" #include "qemu/log.h" #include "hw/gpio/aspeed_gpio.h" -#include "include/hw/misc/aspeed_scu.h" +#include "hw/misc/aspeed_scu.h" #include "qapi/error.h" #include "qapi/visitor.h" #include "hw/irq.h" hw/intc/ppc-uic.c +0
-0
hw/intc/ppc-uic.c line 29
Quoted 8 lines
hw/intc/ppc-uic.c +1
-1@@ -23,7 +23,7 @@*/ #include "qemu/osdep.h" -#include "include/hw/intc/ppc-uic.h" +#include "hw/intc/ppc-uic.h" #include "hw/irq.h" #include "cpu.h" #include "hw/ppc/ppc.h"
Applied to my trivial-patches branch.
Thanks,
Laurent