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> (cherry picked from commitstable-3.059f911938f
) *drop context dep. onc2dd117b38
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
parent
2251d74275
commit
f3200c4c20
|
@ -89,7 +89,7 @@ typedef struct RdmaRmPort {
|
|||
enum ibv_port_state state;
|
||||
} RdmaRmPort;
|
||||
|
||||
typedef struct RdmaDeviceResources {
|
||||
struct RdmaDeviceResources {
|
||||
RdmaRmPort ports[MAX_PORTS];
|
||||
RdmaRmResTbl pd_tbl;
|
||||
RdmaRmResTbl mr_tbl;
|
||||
|
@ -98,6 +98,6 @@ typedef struct RdmaDeviceResources {
|
|||
RdmaRmResTbl cq_tbl;
|
||||
RdmaRmResTbl cqe_ctx_tbl;
|
||||
GHashTable *qp_hash; /* Keeps mapping between real and emulated */
|
||||
} RdmaDeviceResources;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue