]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: modpost: Explicitly warn about unprototyped symbols
authorMark Brown <broonie@kernel.org>
Mon, 7 Jun 2021 14:02:06 +0000 (15:02 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 17 Jun 2021 01:01:05 +0000 (10:01 +0900)
commit6f2ae4b2b13f6a27bf7fcf9e7ad718304e118543
tree4ccdaad75aea83dd5957f9155524a8454013d77f
parentbb500bf5502365aa11a9575f8f3a838de3d6632b
kbuild: modpost: Explicitly warn about unprototyped symbols

One common cause of modpost version generation failures is a failure to
prototype exported assembly functions - the tooling requires this for
exported functions even if they are not and should not be called from C
code in order to do the version mangling for symbols. Unfortunately the
error message is currently rather abstruse, simply saying that "version
generation failed" and even diving into the code doesn't directly show
what's going on since there's several steps between the problem and it
being observed.

Provide an explicit hint as to the likely cause of a version generation
failure to help anyone who runs into this in future more readily diagnose
and fix the problem.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/mod/modpost.c