]> git.baikalelectronics.ru Git - kernel.git/commit
modpost: remove is_vmlinux() helper
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 1 Jun 2020 05:57:30 +0000 (14:57 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 6 Jun 2020 14:39:20 +0000 (23:39 +0900)
commitc4d2f62f81570068e3c2bf1ed055dcde93bf1095
treee1b1bd510421bceb2b4eb86d4947db403bd7f25e
parentfe21c30088e0744b301b6fdcc8a58d03962eddcb
modpost: remove is_vmlinux() helper

Now that is_vmlinux() is called only in new_module(), we can inline
the function call.

modname is the basename with '.o' is stripped. No need to compare it
with 'vmlinux.o'.

vmlinux is always located at the current working directory. No need
to strip the directory path.

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