]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
tuntap: fix for "tuntap: XDP transmission"
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 10 Jan 2018 04:06:14 +0000 (15:06 +1100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jan 2018 20:52:49 +0000 (15:52 -0500)
Fixes: fc72d1d54dd9 ("tuntap: XDP transmission")
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_tun.h

index 08e66827ad8e4f002232ac87280374012984a9c2..c5b0a75a78121935e3ab2874c03a1b9bc123f1cf 100644 (file)
@@ -42,11 +42,11 @@ static inline bool tun_is_xdp_buff(void *ptr)
 {
        return false;
 }
-void *tun_xdp_to_ptr(void *ptr)
+static inline void *tun_xdp_to_ptr(void *ptr)
 {
        return NULL;
 }
-void *tun_ptr_to_xdp(void *ptr)
+static inline void *tun_ptr_to_xdp(void *ptr)
 {
        return NULL;
 }