aboutsummaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2019-07-01 16:06:04 +0100
committerAlex Bennée <alex.bennee@linaro.org>2019-07-04 19:23:07 +0100
commit1f4abd81f7dfeb9d622b37368bef22a6481ebc66 (patch)
treecb22f4fbc938ea7c07be4c2cb7f92562225249cb /migration
parent4cdf03e21ea9d00d988b210864f44cfef29d5919 (diff)
downloadqemu-1f4abd81f7dfeb9d622b37368bef22a6481ebc66.zip
qemu-1f4abd81f7dfeb9d622b37368bef22a6481ebc66.tar.gz
qemu-1f4abd81f7dfeb9d622b37368bef22a6481ebc66.tar.bz2
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>
Diffstat (limited to 'migration')
-rw-r--r--migration/rdma.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/migration/rdma.c b/migration/rdma.c
index 74cb2aa..3036221 100644
--- a/migration/rdma.c
+++ b/migration/rdma.c
@@ -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 '[::]'.