Commit 1f4abd81 authored by Alex Bennée's avatar Alex Bennée
Browse files

migration: move port_attr inside CONFIG_LINUX



Otherwise the FreeBSD compiler complains about an unused variable.

Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent 4cdf03e2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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 '[::]'.