diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-06-01 07:57:24 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-06-06 16:38:13 +0200 |
commit | 3379576dd6e708f66498d49b4cec5f9b198791a0 (patch) | |
tree | bada38d3f9e14a8c30d5284f87f496fc73e2f106 /scripts/mod/modpost.h | |
parent | modpost: move -d option in scripts/Makefile.modpost (diff) | |
download | linux-3379576dd6e708f66498d49b4cec5f9b198791a0.tar.xz linux-3379576dd6e708f66498d49b4cec5f9b198791a0.zip |
modpost: remove mod->is_dot_o struct member
Previously, there were two cases where mod->is_dot_o is unset:
[1] the executable 'vmlinux' in the second pass of modpost
[2] modules loaded by read_dump()
I think [1] was intended usage to distinguish 'vmlinux.o' and 'vmlinux'.
Now that modpost does not parse the executable 'vmlinux', this case
does not happen.
[2] is obscure, maybe a bug. Module.symver stores module paths without
extension. So, none of modules loaded by read_dump() has the .o suffix,
and new_module() unsets ->is_dot_o. Anyway, it is not a big deal because
handle_symbol() is not called for the case.
To sum up, all the parsed ELF files are .o files.
mod->is_dot_o is unneeded.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | scripts/mod/modpost.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/mod/modpost.h b/scripts/mod/modpost.h index bc524506d2f9..68d813abf33d 100644 --- a/scripts/mod/modpost.h +++ b/scripts/mod/modpost.h @@ -126,7 +126,6 @@ struct module { int has_cleanup; struct buffer dev_table_buf; char srcversion[25]; - int is_dot_o; // Missing namespace dependencies struct namespace_list *missing_namespaces; // Actual imported namespaces |