瀏覽代碼

bpf: depends on MODULES

module_alloc() and module_free() are available only if CONFIG_MODULES=y

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Eric Dumazet 14 年之前
父節點
當前提交
b6202f9789
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      net/Kconfig

+ 1 - 0
net/Kconfig

@@ -238,6 +238,7 @@ config HAVE_BPF_JIT
 config BPF_JIT
 config BPF_JIT
 	bool "enable BPF Just In Time compiler"
 	bool "enable BPF Just In Time compiler"
 	depends on HAVE_BPF_JIT
 	depends on HAVE_BPF_JIT
+	depends on MODULES
 	---help---
 	---help---
 	  Berkeley Packet Filter filtering capabilities are normally handled
 	  Berkeley Packet Filter filtering capabilities are normally handled
 	  by an interpreter. This option allows kernel to generate a native
 	  by an interpreter. This option allows kernel to generate a native