mirror of
https://github.com/qemu/qemu.git
synced 2025-08-15 22:31:15 +00:00
hw/rdma: another clang compilation fix
Configuring QEMU with: configure --target-list="x86_64-softmmu" --cc=clang --enable-pvrdma Results in: qemu/hw/rdma/rdma_rm_defs.h:108:3: error: redefinition of typedef 'RdmaDeviceResources' is a C11 feature [-Werror,-Wtypedef-redefinition] } RdmaDeviceResources; ^ qemu/hw/rdma/rdma_backend_defs.h:24:36: note: previous definition is here typedef struct RdmaDeviceResources RdmaDeviceResources; Fix by removing one of the 'typedef' definitions. Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> Message-Id: <20190214154053.15050-1-marcel.apfelbaum@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Acked-by: Kamal Heib <kamalheib1@gmail.com> Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
This commit is contained in:
parent
db8b88bf2c
commit
59f911938f
@ -120,7 +120,7 @@ typedef struct RdmaRmStats {
|
|||||||
uint32_t missing_cqe;
|
uint32_t missing_cqe;
|
||||||
} RdmaRmStats;
|
} RdmaRmStats;
|
||||||
|
|
||||||
typedef struct RdmaDeviceResources {
|
struct RdmaDeviceResources {
|
||||||
RdmaRmPort port;
|
RdmaRmPort port;
|
||||||
RdmaRmResTbl pd_tbl;
|
RdmaRmResTbl pd_tbl;
|
||||||
RdmaRmResTbl mr_tbl;
|
RdmaRmResTbl mr_tbl;
|
||||||
@ -131,6 +131,6 @@ typedef struct RdmaDeviceResources {
|
|||||||
GHashTable *qp_hash; /* Keeps mapping between real and emulated */
|
GHashTable *qp_hash; /* Keeps mapping between real and emulated */
|
||||||
QemuMutex lock;
|
QemuMutex lock;
|
||||||
RdmaRmStats stats;
|
RdmaRmStats stats;
|
||||||
} RdmaDeviceResources;
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user