modpost: add sym_add_unresolved() helper
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 1 May 2022 08:40:11 +0000 (17:40 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 7 May 2022 18:17:00 +0000 (03:17 +0900)
commite882e89bcf1d54da2e4388570325774c3e3078a9
tree2e31b0a601164a4dc84c0c894828b6c16afa7dcc
parent325eba05e8ab53a9182a2734f0986c15e5f87349
modpost: add sym_add_unresolved() helper

Add a small helper, sym_add_unresolved() to ease the further
refactoring.

Remove the 'weak' argument from alloc_symbol() because it is sensible
only for unresolved symbols.

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