]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: af_inet: make it explicitly non-modular
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 11 Jul 2016 20:37:51 +0000 (16:37 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Jul 2016 05:44:26 +0000 (22:44 -0700)
commitcd7c993ab2f394b4a08807841a74359706945332
treee3d46390d474774f945aa8113c7cc41812e6292a
parentf829b1d6ac8b7f92c957f7d679d8d215ae4b54b4
ipv4: af_inet: make it explicitly non-modular

The Makefile controlling compilation of this file is obj-y,
meaning that it currently is never being built as a module.

Since MODULE_ALIAS is a no-op for non-modular code, we can simply
remove the MODULE_ALIAS_NETPROTO variant used here.

We replace module.h with kmod.h since the file does make use of
request_module() in order to load other modules from here.

We don't have to worry about init.h coming in via the removed
module.h since the file explicitly includes init.h already.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Cc: James Morris <jmorris@namei.org>
Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Cc: Patrick McHardy <kaber@trash.net>
Cc: netdev@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c