Taken from http://bugzilla.kernel.org/show_bug.cgi?id=11567 If you even define KBUILD_EXTRA_SYMBOLS in Makefile it will not be expanded into command line argument for modpost.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -82,7 +82,7 @@ modpost = scripts/mod/modpost \ · 81 unmodified lines | ||
| 82 | 82 | $(if $(CONFIG_MODULE_SRCVERSION_ALL),-a,) \ |
| 83 | 83 | $(if $(KBUILD_EXTMOD),-i,-o) $(kernelsymfile) \ |
| 84 | 84 | $(if $(KBUILD_EXTMOD),-I $(modulesymfile)) \ |
| 85 | − $(if $(KBUILD_EXTRA_SYMBOLS), $(patsubst %, -e %,$(EXTRA_SYMBOLS))) \ | |
| 85 | + $(if $(KBUILD_EXTRA_SYMBOLS), $(patsubst %, -e %,$(KBUILD_EXTRA_SYMBOLS))) \ | |
| 86 | 86 | $(if $(KBUILD_EXTMOD),-o $(modulesymfile)) \ |
| 87 | 87 | $(if $(CONFIG_DEBUG_SECTION_MISMATCH),,-S) \ |
| 88 | 88 | $(if $(CONFIG_MARKERS),-K $(kernelmarkersfile)) \ |