modpost: pass 'tosec' down to default_mismatch_handler()
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 14 May 2023 15:27:26 +0000 (00:27 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 22 May 2023 01:34:38 +0000 (10:34 +0900)
commitdbf7cc2e4e78dfecad02ff17ff5c9971b42da462
tree40320ba8684f63f5f669189c7af39c1ecf048b05
parent856567d5599e7df75d7cad1fef1311d7c1854200
modpost: pass 'tosec' down to default_mismatch_handler()

default_mismatch_handler() does not need to compute 'tosec' because
it is calculated by the caller.

Pass it down to default_mismatch_handler() instead of calling
sec_name() twice.

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