]> git.baikalelectronics.ru Git - kernel.git/commit
modpost: do not call get_modinfo() for vmlinux(.o)
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 1 Jun 2020 05:57:16 +0000 (14:57 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 6 Jun 2020 14:38:12 +0000 (23:38 +0900)
commit4c2e714b0e808469422952d88e255505a16fbcb3
tree3579a3e2a84013845fa64fc30100cc334c360f95
parentaad98b89497d669e56f27a71c77739f4a1ef0ed0
modpost: do not call get_modinfo() for vmlinux(.o)

The three calls of get_modinfo() ("license", "import_ns", "version")
always return NULL for vmlinux(.o) because the built-in module info is
prefixed with __MODULE_INFO_PREFIX.

It is harmless to call get_modinfo(), but there is no point to search
for what apparently does not exist.

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