]> git.baikalelectronics.ru Git - kernel.git/commit
modules: make MODULE_IMPORT_NS() work even when modular builds are disabled
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 22 Sep 2019 18:15:14 +0000 (11:15 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 22 Sep 2019 18:15:14 +0000 (11:15 -0700)
commit96b57a954eae99114d651a1752f114fe9b1e276f
treee79f61062c6af8e70faf4330178f1c86f81fd86e
parent3195be510aae0b7a2011e71ef17d10d5a6e68985
modules: make MODULE_IMPORT_NS() work even when modular builds are disabled

It's an unusual configuration, and was apparently never tested, and not
caught in linux-next because of a combination of travels and it making
it into the tree too late.

The fix is to simply move the #define to outside the CONFIG_MODULE
section, since MODULE_INFO() will do the right thing.

Cc: Martijn Coenen <maco@android.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Matthias Maennich <maennich@google.com>
Cc: Jessica Yu <jeyu@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/module.h