[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200723141914.20722-1-trix@redhat.com>
Date: Thu, 23 Jul 2020 07:19:14 -0700
From: trix@...hat.com
To: ast@...nel.org, daniel@...earbox.net, kafai@...com,
songliubraving@...com, yhs@...com, andriin@...com,
john.fastabend@...il.com, kpsingh@...omium.org,
masahiroy@...nel.org, mhiramat@...nel.org, rostedt@...dmis.org,
akpm@...ux-foundation.org, will@...nel.org, krzk@...nel.org,
patrick.bellasi@....com, dhowells@...hat.com,
ebiederm@...ssion.com, hannes@...xchg.org
Cc: linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
bpf@...r.kernel.org, Tom Rix <trix@...hat.com>
Subject: [PATCH] bpf: BPF_SYSCALL depends INET
From: Tom Rix <trix@...hat.com>
A link error
kernel/bpf/net_namespace.o: In function `bpf_netns_link_release':
net_namespace.c: undefined reference to `bpf_sk_lookup_enabled'
bpf_sk_lookup_enabled is defined with INET
net_namespace is controlled by BPF_SYSCALL
So add a depends on INET to BPF_SYSCALL
Signed-off-by: Tom Rix <trix@...hat.com>
---
init/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/init/Kconfig b/init/Kconfig
index 7b8ef43e7fb4..817f70e6023c 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1663,6 +1663,7 @@ config BPF_SYSCALL
bool "Enable bpf() system call"
select BPF
select IRQ_WORK
+ depends on INET
default n
help
Enable the bpf() system call that allows to manipulate eBPF
--
2.18.1
Powered by blists - more mailing lists