net: strparser: make it explicitly non-modular
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 21 Apr 2019 03:29:48 +0000 (23:29 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Apr 2019 04:50:54 +0000 (21:50 -0700)
commit15253b4a719c0fc6ea8e5f5f3460d841f73ec1c9
treedf4adbe50dceadbd071f6edd7a34b870a832d333
parent3557b3fdeefacdd111469f90db1a0602902c9698
net: strparser: make it explicitly non-modular

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: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/strparser/strparser.c