]> git.baikalelectronics.ru Git - kernel.git/commit
module: relocate module_init from init.h to module.h
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sat, 2 May 2015 00:13:42 +0000 (20:13 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 6 Jul 2015 03:59:14 +0000 (23:59 -0400)
commit11d2014c7b25ee1519e89fbf192f0689775244b8
tree8b2feeaab9816ca836d8142983d51dd1f2ff5fdd
parent0c9e0229f3c4e023815b9350b2095fd8ad5809e3
module: relocate module_init from init.h to module.h

Modular users will always be users of init functionality, but
users of init functionality are not necessarily always modules.

Hence any functionality like module_init and module_exit would
be more at home in the module.h file.  And module.h should
explicitly include init.h to make the dependency clear.

We've already done all the legwork needed to ensure that this
move does not cause any build regressions due to implicit
header file include assumptions about where module_init lives.

Cc: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
include/linux/init.h
include/linux/module.h