fib: make netdev_switch_fib_ipv4_abort in header file static inline
Subsystems (3)
PATCH 1/1 fib: make netdev_switch_fib_ipv4_abort in header file static inline
From: Willem de Bruijn <[email protected]>
When building without CONFIG_NET_SWITCHDEV, netdev_switch_fib_ipv4_abort is defined in the header file. It must be static inline to avoid build failure at link time.
--- include/net/switchdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/switchdev.h +1 -1
@@ -129,7 +129,7 @@ static inline int netdev_switch_fib_ipv4_del(u32 dst, int dst_len,return 0 ; } -void netdev_switch_fib_ipv4_abort (struct fib_info *fi) +static inline void netdev_switch_fib_ipv4_abort (struct fib_info *fi) { }
Signature · 1 line
2.2.0.rc0.207.ga3a616c
Quoted 18 lines · Willem de Bruijn
From: Willem de Bruijn <[email protected]>
When building without
CONFIG_NET_SWITCHDEV,netdev_switch_fib_ipv4_abortis defined in the header file. It must be static inline to avoid build failure at link time.Fixes 8e05fd7166c6 ("fib: hook IPv4 fib for hardware offload")Signed-off-by Willem de Bruijn <[email protected]>--- include/net/switchdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/net/switchdev.h +0
-0
include/net/switchdev.h static inline int netdev_switch_fib_ipv4_del(u32 dst, int dst_len, · line 134
Quoted 7 lines
include/net/switchdev.h +1
-1@@ -129,7 +129,7 @@ static inline int netdev_switch_fib_ipv4_del(u32 dst, int dst_len,return 0 ; } -void netdev_switch_fib_ipv4_abort (struct fib_info *fi) +static inline void netdev_switch_fib_ipv4_abort (struct fib_info *fi) { }
From: Willem de Bruijn <[email protected]>
Date: Fri, 6 Mar 2015 11:44:28 -0500
Quoted 9 lines
From: Willem de Bruijn <[email protected]>
When building without
CONFIG_NET_SWITCHDEV,netdev_switch_fib_ipv4_abortis defined in the header file. It must be static inline to avoid build failure at link time.Fixes 8e05fd7166c6 ("fib: hook IPv4 fib for hardware offload")Signed-off-by Willem de Bruijn <[email protected]>
Applied, thanks Willem.