Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89650ad0 authored by Willem de Bruijn's avatar Willem de Bruijn Committed by David S. Miller
Browse files

fib: make netdev_switch_fib_ipv4_abort in header file static inline



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: 8e05fd71 ("fib: hook IPv4 fib for hardware offload")

Signed-off-by: default avatarWillem de Bruijn <willemb@google.com>
Acked-by: default avatarScott Feldman <sfeldma@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f8d54afc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
{
}