Skip to content

Commit

Permalink
fib: make netdev_switch_fib_ipv4_abort in header file static inline
Browse files Browse the repository at this point in the history
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: 8e05fd7 ("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>
  • Loading branch information
Willem de Bruijn authored and David S. Miller committed Mar 6, 2015
1 parent f8d54af commit 89650ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/switchdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
}

Expand Down

0 comments on commit 89650ad

Please sign in to comment.