• Paul Gortmaker's avatar
    net: bpfilter: dont use module_init in non-modular code · 3557b3fd
    Paul Gortmaker authored
    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: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    3557b3fd
sockopt.c 1.8 KB