Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31ab8acb authored by Roland Dreier's avatar Roland Dreier
Browse files

RDMA/ocrdma: Move ocrdma_inetaddr_event outside of "#if CONFIG_IPV6"



This fixes the build if IPV6 isn't enabled.

Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent f282651d
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -174,6 +174,10 @@ static int ocrdma_inetaddr_event(struct notifier_block *notifier,
	return ocrdma_addr_event(event, netdev, &gid);
}

static struct notifier_block ocrdma_inetaddr_notifier = {
	.notifier_call = ocrdma_inetaddr_event
};

#if IS_ENABLED(CONFIG_IPV6)

static int ocrdma_inet6addr_event(struct notifier_block *notifier,
@@ -185,10 +189,6 @@ static int ocrdma_inet6addr_event(struct notifier_block *notifier,
	return ocrdma_addr_event(event, netdev, gid);
}

static struct notifier_block ocrdma_inetaddr_notifier = {
	.notifier_call = ocrdma_inetaddr_event
};

static struct notifier_block ocrdma_inet6addr_notifier = {
	.notifier_call = ocrdma_inet6addr_event
};