tests/qtest: libqos: Rename malloc.h to libqos-malloc.h

The qtest/libqos directory is included via the "-I" option to search
for header files when building qtest. Unfortunately the malloc.h has
a name conflict with the standard libc header, leading to a build
failure on the Windows host, due to the MinGW libc stdlib.h header
file includes malloc.h and it now gets wrongly pointed to the one
in the qtest/libqos directory.

Rename "qtest/libqos/malloc.h" to "qtest/libqos/libqos-malloc.h" to
avoid the namespace pollution.

Signed-off-by: Xuzhou Cheng <xuzhou.cheng@windriver.com>
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220824094029.1634519-26-bmeng.cn@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
Xuzhou Cheng
2022-08-29 15:28:51 +02:00
committed by Thomas Huth
parent e0e4c27c6f
commit b243c73cf4
28 changed files with 27 additions and 27 deletions
+1 -1
View File
@@ -31,7 +31,7 @@
#include "qemu/iov.h"
#include "qemu/module.h"
#include "qemu/bitops.h"
#include "libqos/malloc.h"
#include "libqos/libqos-malloc.h"
#include "libqos/e1000e.h"
static void e1000e_send_verify(QE1000E *d, int *test_sockets, QGuestAllocator *alloc)
+1 -1
View File
@@ -23,7 +23,7 @@
#include "qemu/main-loop.h"
#include "tests/qtest/libqtest.h"
#include "tests/qtest/libqos/malloc.h"
#include "tests/qtest/libqos/libqos-malloc.h"
#include "tests/qtest/libqos/qgraph.h"
#include "tests/qtest/libqos/qgraph_internal.h"
#include "tests/qtest/libqos/qos_external.h"
@@ -19,7 +19,7 @@
#include "qemu/osdep.h"
#include "../libqtest.h"
#include "qemu/module.h"
#include "malloc.h"
#include "libqos-malloc.h"
#include "qgraph.h"
#include "sdhci.h"
+1 -1
View File
@@ -20,7 +20,7 @@
#include "qemu/osdep.h"
#include "../libqtest.h"
#include "malloc.h"
#include "libqos-malloc.h"
#include "qgraph.h"
#include "i2c.h"
+1 -1
View File
@@ -20,7 +20,7 @@
#include "qemu/osdep.h"
#include "../libqtest.h"
#include "malloc.h"
#include "libqos-malloc.h"
#include "qgraph.h"
#include "i2c.h"
+1 -1
View File
@@ -19,7 +19,7 @@
#include "qemu/osdep.h"
#include "../libqtest.h"
#include "qemu/module.h"
#include "malloc.h"
#include "libqos-malloc.h"
#include "qgraph.h"
#include "sdhci.h"
+1 -1
View File
@@ -19,7 +19,7 @@
#include "qemu/osdep.h"
#include "../libqtest.h"
#include "qemu/module.h"
#include "malloc.h"
#include "libqos-malloc.h"
#include "qgraph.h"
#include "sdhci.h"
+1 -1
View File
@@ -19,7 +19,7 @@
#include "qemu/osdep.h"
#include "../libqtest.h"
#include "qemu/module.h"
#include "malloc.h"
#include "libqos-malloc.h"
#include "qgraph.h"
#include "sdhci.h"
+1 -1
View File
@@ -19,7 +19,7 @@
#include "qemu/osdep.h"
#include "../libqtest.h"
#include "qemu/module.h"
#include "malloc.h"
#include "libqos-malloc.h"
#include "qgraph.h"
#include "virtio-mmio.h"
#include "generic-pcihost.h"
@@ -19,7 +19,7 @@
#include "qemu/osdep.h"
#include "../libqtest.h"
#include "qemu/module.h"
#include "malloc.h"
#include "libqos-malloc.h"
#include "qgraph.h"
#include "sdhci.h"
+1 -1
View File
@@ -23,7 +23,7 @@
#include "qemu/iov.h"
#include "qemu/module.h"
#include "qemu/bitops.h"
#include "malloc.h"
#include "libqos-malloc.h"
#include "qgraph.h"
#include "e1000e.h"
+1 -1
View File
@@ -14,7 +14,7 @@
#define LIBQOS_GENERIC_PCIHOST_H
#include "pci.h"
#include "malloc.h"
#include "libqos-malloc.h"
#include "qgraph.h"
typedef struct QGenericPCIBus {
@@ -11,7 +11,7 @@
*/
#include "qemu/osdep.h"
#include "malloc.h"
#include "libqos-malloc.h"
#include "qemu/host-utils.h"
typedef struct MemBlock {
+1 -1
View File
@@ -3,7 +3,7 @@
#include "../libqtest.h"
#include "pci.h"
#include "malloc.h"
#include "libqos-malloc.h"
typedef struct QOSState QOSState;
+1 -1
View File
@@ -13,7 +13,7 @@
#ifndef LIBQOS_MALLOC_PC_H
#define LIBQOS_MALLOC_PC_H
#include "malloc.h"
#include "libqos-malloc.h"
void pc_alloc_init(QGuestAllocator *s, QTestState *qts, QAllocOpts flags);
+1 -1
View File
@@ -8,7 +8,7 @@
#ifndef LIBQOS_MALLOC_SPAPR_H
#define LIBQOS_MALLOC_SPAPR_H
#include "malloc.h"
#include "libqos-malloc.h"
void spapr_alloc_init(QGuestAllocator *s, QTestState *qts, QAllocOpts flags);
+1 -1
View File
@@ -6,7 +6,7 @@ libqos_srcs = files(
'qos_external.c',
'pci.c',
'fw_cfg.c',
'malloc.c',
'libqos-malloc.c',
'libqos.c',
'sdhci-cmd.c',
+1 -1
View File
@@ -14,7 +14,7 @@
#define LIBQOS_PCI_PC_H
#include "pci.h"
#include "malloc.h"
#include "libqos-malloc.h"
#include "qgraph.h"
typedef struct QPCIBusPC {
+1 -1
View File
@@ -8,7 +8,7 @@
#ifndef LIBQOS_PCI_SPAPR_H
#define LIBQOS_PCI_SPAPR_H
#include "malloc.h"
#include "libqos-malloc.h"
#include "pci.h"
#include "qgraph.h"

Some files were not shown because too many files have changed in this diff Show More