fib: make netdev_switch_fib_ipv4_abort in header file static inline
authorWillem de Bruijn <willemb@google.com>
Fri, 6 Mar 2015 16:44:28 +0000 (11:44 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Mar 2015 20:44:35 +0000 (15:44 -0500)
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.

Fixes: 8e05fd7166c6 ("fib: hook IPv4 fib for hardware offload")

Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/switchdev.h

index dc0a5cc7c2c5cde937687eadd6decdb08340778e..933fac410a7abaa392f47692ead8d7d7971ad42b 100644 (file)
@@ -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)
 {
 }