aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Dreier <roland@purestorage.com>2014-01-19 18:13:44 -0500
committerRoland Dreier <roland@purestorage.com>2014-01-19 18:14:05 -0500
commit31ab8acbf6618c89fec77f7706df7daaa319feb5 (patch)
treea4d29b53a795a705aded460edee2171bb110d480
parentf282651de676d10e395bc7923f0087fbbba12ed7 (diff)
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 <roland@purestorage.com>
-rw-r--r--drivers/infiniband/hw/ocrdma/ocrdma_main.c8
1 files changed, 4 insertions, 4 deletions
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,
174 return ocrdma_addr_event(event, netdev, &gid); 174 return ocrdma_addr_event(event, netdev, &gid);
175} 175}
176 176
177static struct notifier_block ocrdma_inetaddr_notifier = {
178 .notifier_call = ocrdma_inetaddr_event
179};
180
177#if IS_ENABLED(CONFIG_IPV6) 181#if IS_ENABLED(CONFIG_IPV6)
178 182
179static int ocrdma_inet6addr_event(struct notifier_block *notifier, 183static int ocrdma_inet6addr_event(struct notifier_block *notifier,
@@ -185,10 +189,6 @@ static int ocrdma_inet6addr_event(struct notifier_block *notifier,
185 return ocrdma_addr_event(event, netdev, gid); 189 return ocrdma_addr_event(event, netdev, gid);
186} 190}
187 191
188static struct notifier_block ocrdma_inetaddr_notifier = {
189 .notifier_call = ocrdma_inetaddr_event
190};
191
192static struct notifier_block ocrdma_inet6addr_notifier = { 192static struct notifier_block ocrdma_inet6addr_notifier = {
193 .notifier_call = ocrdma_inet6addr_event 193 .notifier_call = ocrdma_inet6addr_event
194}; 194};