summaryrefslogtreecommitdiff
path: root/scripts/Makefile.build
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2022-04-05 14:33:54 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2022-05-07 21:16:58 +0300
commit79f646e8654b6b8e4f7dda456ec3eabd51052041 (patch)
tree94f5ffbf2639714ca6e994b8668a701bc2b4999e /scripts/Makefile.build
parentb5f1a52a59eb810f68c96d1cea7cf1256c39956c (diff)
downloadlinux-79f646e8654b6b8e4f7dda456ec3eabd51052041.tar.xz
modpost: remove annoying namespace_from_kstrtabns()
There are two call sites for sym_update_namespace(). When the symbol has no namespace, s->namespace is set to NULL, but the conversion from "" to NULL is done in two different places. [1] read_symbols() This gets the namespace from __kstrtabns_<symbol>. If the symbol has no namespace, sym_get_data(info, sym) returns the empty string "". namespace_from_kstrtabns() converts it to NULL before it is passed to sym_update_namespace(). [2] read_dump() This gets the namespace from the dump file, *.symvers. If the symbol has no namespace, the 'namespace' is the empty string "", which is directly passed into sym_update_namespace(). The conversion from "" to NULL is done in sym_update_namespace(). namespace_from_kstrtabns() exists only for creating this inconsistency. Remove namespace_from_kstrtabns() so that sym_update_namespace() is consistently passed with "" instead of NULL. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'scripts/Makefile.build')
0 files changed, 0 insertions, 0 deletions