summaryrefslogtreecommitdiff
path: root/net/strparser
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2019-04-20 23:29:47 -0400
committerDavid S. Miller <davem@davemloft.net>2019-04-22 21:50:54 -0700
commit3557b3fdeefacdd111469f90db1a0602902c9698 (patch)
tree0e83414f64f6f012ce18d5aa4e6963edcb65a091 /net/strparser
parent9628495d507709053b40cb631eee56708ff225f2 (diff)
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