]> git.baikalelectronics.ru Git - kernel.git/commit
modpost: remove mod->skip struct member
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 1 Jun 2020 05:57:27 +0000 (14:57 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 6 Jun 2020 14:39:20 +0000 (23:39 +0900)
commit6feec76f6c40aa6d219dfadd29ae0590c7bf147d
tree61ab5fc541defa3a5203136624b09adbd2d6407a
parent919a64a2120847f44992d542e321feee74b469a4
modpost: remove mod->skip struct member

The meaning of 'skip' is obscure since it does not explain
"what to skip".

mod->skip is set when it is vmlinux or the module info came from
a dump file.

So, mod->skip is equivalent to (mod->is_vmlinux || mod->from_dump).

For the check in write_namespace_deps_files(), mod->is_vmlinux is
unneeded because the -d option is not passed in the first pass of
modpost.

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