OSDN Git Service

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 08e6682..c5b0a75 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;
 }