summaryrefslogtreecommitdiffstats
path: root/net/strparser
diff options
context:
space:
mode:
authorPaul Gortmaker2019-04-21 05:29:47 +0200
committerDavid S. Miller2019-04-23 06:50:54 +0200
commit3557b3fdeefacdd111469f90db1a0602902c9698 (patch)
tree0e83414f64f6f012ce18d5aa4e6963edcb65a091 /net/strparser
parentcgroup: net: remove left over MODULE_LICENSE tag (diff)
downloadkernel-qcow2-linux-3557b3fdeefacdd111469f90db1a0602902c9698.tar.gz
kernel-qcow2-linux-3557b3fdeefacdd111469f90db1a0602902c9698.tar.xz
kernel-qcow2-linux-3557b3fdeefacdd111469f90db1a0602902c9698.zip
net: bpfilter: dont use module_init in non-modular code
The Kconfig controlling this code is: bpfilter/Kconfig:menuconfig BPFILTER bpfilter/Kconfig: bool "BPF based packet filtering framework (BPFILTER)" Since it isn't a module, we shouldn't use module_init(). Instead we use device_initcall() - which is exactly what module_init() defaults to for non-modular code/builds. We don't remove <linux/module.h> from the includes since this file does a request_module() and hence is a valid user of that header file, even though it is not modular itself. Cc: "David S. Miller" <davem@davemloft.net> Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/strparser')
0 files changed, 0 insertions, 0 deletions