]> git.baikalelectronics.ru Git - kernel.git/commit
net: psample: fix build error when CONFIG_INET is not enabled
authorRandy Dunlap <rdunlap@infradead.org>
Fri, 22 May 2020 20:05:26 +0000 (13:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 May 2020 23:36:05 +0000 (16:36 -0700)
commit5b71e8c2f2711048144380de62a47a8471ed2699
treea17c8205a35fbc69ad73ca8a45655f8f1b5343de
parentef0aae7b5e0fec76da24a6ad650a16dbffae4e69
net: psample: fix build error when CONFIG_INET is not enabled

Fix psample build error when CONFIG_INET is not set/enabled by
bracketing the tunnel code in #ifdef CONFIG_NET / #endif.

../net/psample/psample.c: In function ‘__psample_ip_tun_to_nlattr’:
../net/psample/psample.c:216:25: error: implicit declaration of function ‘ip_tunnel_info_opts’; did you mean ‘ip_tunnel_info_opts_set’? [-Werror=implicit-function-declaration]

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Yotam Gigi <yotam.gi@gmail.com>
Cc: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/psample/psample.c