From: Roland Dreier Date: Sun, 19 Jan 2014 23:13:44 +0000 (-0800) Subject: RDMA/ocrdma: Move ocrdma_inetaddr_event outside of "#if CONFIG_IPV6" X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=31ab8acbf6618c89fec77f7706df7daaa319feb5;p=linux-beck.git RDMA/ocrdma: Move ocrdma_inetaddr_event outside of "#if CONFIG_IPV6" This fixes the build if IPV6 isn't enabled. Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_main.c b/drivers/infiniband/hw/ocrdma/ocrdma_main.c index 47187bfdbd4f..2ca86ca818bd 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_main.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_main.c @@ -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 };