From: Alex Bennée Date: Mon, 1 Jul 2019 15:06:04 +0000 (+0100) Subject: migration: move port_attr inside CONFIG_LINUX X-Git-Tag: v4.1.0-rc0~12^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f4abd81f7dfeb9d622b37368bef22a6481ebc66;p=thirdparty%2Fqemu.git migration: move port_attr inside CONFIG_LINUX Otherwise the FreeBSD compiler complains about an unused variable. Signed-off-by: Alex Bennée Reviewed-by: Peter Maydell --- diff --git a/migration/rdma.c b/migration/rdma.c index 74cb2aa9f91..3036221ee82 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 '[::]'.