]> git.baikalelectronics.ru Git - kernel.git/commit
modpost: split new_symbol() to symbol allocation and hash table addition
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 1 May 2022 08:40:19 +0000 (17:40 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 7 May 2022 18:17:01 +0000 (03:17 +0900)
commitd7c2ede750148573ec9b2440c39b4d283c74b1ef
treea7086d84f58e20e01946f412721be513b2f5fe32
parent4bc83bf4aadf871c1728b7b0b0849d8680bd5a0b
modpost: split new_symbol() to symbol allocation and hash table addition

new_symbol() does two things; allocate a new symbol and register it
to the hash table.

Using a separate function for each is easier to understand.

Replace new_symbol() with hash_add_symbol(). Remove the second parameter
of alloc_symbol().

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
scripts/mod/modpost.c