mirror of https://gitee.com/openkylin/qemu.git
migration: move port_attr inside CONFIG_LINUX
Otherwise the FreeBSD compiler complains about an unused variable. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
4cdf03e21e
commit
1f4abd81f7
|
@ -839,10 +839,9 @@ static void qemu_rdma_dump_gid(const char *who, struct rdma_cm_id *id)
|
|||
*/
|
||||
static int qemu_rdma_broken_ipv6_kernel(struct ibv_context *verbs, Error **errp)
|
||||
{
|
||||
struct ibv_port_attr port_attr;
|
||||
|
||||
/* This bug only exists in linux, to our knowledge. */
|
||||
#ifdef CONFIG_LINUX
|
||||
struct ibv_port_attr port_attr;
|
||||
|
||||
/*
|
||||
* Verbs are only NULL if management has bound to '[::]'.
|
||||
|
|
Loading…
Reference in New Issue