]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: fail kernel compilation in case of unresolved module symbols
authorKirill Korotaev <dev@openvz.org>
Thu, 7 Sep 2006 20:08:54 +0000 (13:08 -0700)
committerSam Ravnborg <sam@neptun.ravnborg.org>
Mon, 25 Sep 2006 07:14:30 +0000 (09:14 +0200)
commit0e8416513870686d66e423d2d9380e48bfdc00f0
treef049bfa5703ecaac0f9694d2f8f60bfed8845c78
parent2bbdac6f3392fc244f0420387b538be955a66b20
kbuild: fail kernel compilation in case of unresolved module symbols

At stage 2 modpost utility is used to check modules.  In case of unresolved
symbols modpost only prints warning.

IMHO it is a good idea to fail compilation process in case of unresolved
symbols (at least in modules coming with kernel), since usually such errors
are left unnoticed, but kernel modules are broken.

- new option '-w' is added to modpost:
  if option is specified, modpost only warns about unresolved symbols

- modpost is called with '-w' for external modules in Makefile.modpost

Signed-off-by: Andrey Mirkin <amirkin@sw.ru>
Signed-off-by: Kirill Korotaev <dev@openvz.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/Makefile.modpost
scripts/mod/modpost.c