• Paul Gortmaker's avatar
    net: strparser: make it explicitly non-modular · 15253b4a
    Paul Gortmaker authored
    The Kconfig currently controlling compilation of this code is:
    
    net/strparser/Kconfig:config STREAM_PARSER
    net/strparser/Kconfig:  def_bool n
    
    ...meaning that it currently is not being built as a module by anyone.
    
    Lets remove the modular code that is essentially orphaned, so that
    when reading the driver there is no doubt it is builtin-only.
    
    Since module_init translates to device_initcall in the non-modular
    case, the init ordering remains unchanged with this commit.  For
    clarity, we change the fcn name mod_init to dev_init at the same time.
    
    We replace module.h with init.h and export.h ; the latter since this
    file exports some syms.
    
    Cc: "David S. Miller" <davem@davemloft.net>
    Cc: Alexei Starovoitov <ast@kernel.org>
    Cc: Daniel Borkmann <daniel@iogearbox.net>
    Cc: Martin KaFai Lau <kafai@fb.com>
    Cc: Song Liu <songliubraving@fb.com>
    Cc: Yonghong Song <yhs@fb.com>
    Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    15253b4a
strparser.c 13.1 KB