]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net/core: make sock_diag.c explicitly non-modular
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 7 Oct 2015 21:27:43 +0000 (17:27 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Oct 2015 14:52:27 +0000 (07:52 -0700)
commitb6191aeeec1045decb5964e6b5e8c314f5982c85
tree365f5e2770586781c1b23d8ce97d5e3dd623d252
parent4d886d65ed89f2572727c354162341a4c106a963
net/core: make sock_diag.c explicitly non-modular

The Makefile currently controlling compilation of this code lists
it under "obj-y" ...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.  We can
change to one of the other priority initcalls (subsys?) at any later
date, if desired.

We can't remove module.h since the file uses other module related
stuff even though it is not modular itself.

We move the information from the MODULE_LICENSE tag to the top of the
file, since that information is not captured anywhere else.  The
MODULE_ALIAS_NET_PF_PROTO becomes a no-op in the non modular case, so
it is removed.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Alexei Starovoitov <ast@plumgrid.com>
Cc: Craig Gallek <kraig@google.com>
Cc: netdev@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock_diag.c