From: Stephen Rothwell Date: Wed, 10 Jan 2018 04:06:14 +0000 (+1100) Subject: tuntap: fix for "tuntap: XDP transmission" X-Git-Tag: v4.16-rc1~123^2~193 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1125b008711581a8962ee028e2982d7757093600;p=uclinux-h8%2Flinux.git tuntap: fix for "tuntap: XDP transmission" Fixes: fc72d1d54dd9 ("tuntap: XDP transmission") Signed-off-by: Stephen Rothwell Acked-by: Jason Wang Signed-off-by: David S. Miller --- diff --git a/include/linux/if_tun.h b/include/linux/if_tun.h index 08e66827ad8e..c5b0a75a7812 100644 --- a/include/linux/if_tun.h +++ b/include/linux/if_tun.h @@ -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; }