Skip to content

Commit 83da1be

Browse files
wwladimasahir0y
authored andcommitted
modpost: make KBUILD_MODPOST_WARN also configurable for external modules
Commit ea837f1 ("kbuild: make modpost processing configurable") was intended to give KBUILD_MODPOST_WARN flexibility to be configurable. Right now KBUILD_MODPOST_WARN gets just ignored when KBUILD_EXTMOD is set which happens per default when building modules out of the tree. This change gives the opportunity to define module build behaving also in case of out of tree builds and default will become exit on error. Errors which can be detected by the build should be trapped out of the box there, unless somebody wants to notice broken stuff later at runtime. As this patch changes the default behaving from warning to error, users can consider to fix it for external module builds by: - providing module symbol table via KBUILD_EXTRA_SYMBOLS for modules which are dependent - OR getting old behaving back by passing KBUILD_MODPOST_WARN to the build Signed-off-by: Wladislav Wiebe <wladislav.wiebe@nokia.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent a788b2e commit 83da1be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/Makefile.modpost‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ modpost = scripts/mod/modpost \
7878
$(if $(KBUILD_EXTRA_SYMBOLS), $(patsubst %, -e %,$(KBUILD_EXTRA_SYMBOLS))) \
7979
$(if $(KBUILD_EXTMOD),-o $(modulesymfile)) \
8080
$(if $(CONFIG_SECTION_MISMATCH_WARN_ONLY),,-E) \
81-
$(if $(KBUILD_EXTMOD)$(KBUILD_MODPOST_WARN),-w)
81+
$(if $(KBUILD_MODPOST_WARN),-w)
8282

8383
MODPOST_OPT=$(subst -i,-n,$(filter -i,$(MAKEFLAGS)))
8484

0 commit comments

Comments
 (0)