Skip to content
Commit 4ddea2f8 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

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: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent f6931535
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment