]> git.baikalelectronics.ru Git - kernel.git/commit
bpfilter: Fix build error with CONFIG_BPFILTER_UMH
authorYueHaibing <yuehaibing@huawei.com>
Wed, 14 Oct 2020 09:17:49 +0000 (17:17 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 15 Oct 2020 16:36:14 +0000 (09:36 -0700)
commita533b6a3c5b3de1d549defe997f91848b737ee26
treec1ec368f1613f652bc7ddd1a75a5681942bb09a3
parenteffdc8a3caf99491d69ce7c06f1b936b02a6af40
bpfilter: Fix build error with CONFIG_BPFILTER_UMH

IF CONFIG_BPFILTER_UMH is set, building fails:

In file included from /usr/include/sys/socket.h:33:0,
                 from net/bpfilter/main.c:6:
/usr/include/bits/socket.h:390:10: fatal error: asm/socket.h: No such file or directory
 #include <asm/socket.h>
          ^~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.userprogs:43: recipe for target 'net/bpfilter/main.o' failed
make[2]: *** [net/bpfilter/main.o] Error 1

Add missing include path to fix this.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bpfilter/Makefile