提交 31ab8acb 编写于 作者: R Roland Dreier

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

This fixes the build if IPV6 isn't enabled.
Signed-off-by: NRoland Dreier <roland@purestorage.com>
上级 f282651d
...@@ -174,6 +174,10 @@ static int ocrdma_inetaddr_event(struct notifier_block *notifier, ...@@ -174,6 +174,10 @@ static int ocrdma_inetaddr_event(struct notifier_block *notifier,
return ocrdma_addr_event(event, netdev, &gid); return ocrdma_addr_event(event, netdev, &gid);
} }
static struct notifier_block ocrdma_inetaddr_notifier = {
.notifier_call = ocrdma_inetaddr_event
};
#if IS_ENABLED(CONFIG_IPV6) #if IS_ENABLED(CONFIG_IPV6)
static int ocrdma_inet6addr_event(struct notifier_block *notifier, static int ocrdma_inet6addr_event(struct notifier_block *notifier,
...@@ -185,10 +189,6 @@ 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); 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 = { static struct notifier_block ocrdma_inet6addr_notifier = {
.notifier_call = ocrdma_inet6addr_event .notifier_call = ocrdma_inet6addr_event
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部