]> git.baikalelectronics.ru Git - kernel.git/commit
modpost: reuse ARRAY_SIZE() macro for section_mismatch()
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 23 May 2022 16:46:25 +0000 (01:46 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 27 May 2022 07:15:40 +0000 (16:15 +0900)
commit238ccf99cc557675ef360cb275b6aa5d54c2feea
treeefdd5e9901d8fe8901d4c293fc4a61d0fc02bae1
parent429e3a77cee4fa25f9dc28c1be70fa87b8c1317e
modpost: reuse ARRAY_SIZE() macro for section_mismatch()

Move ARRAY_SIZE() from file2alias.c to modpost.h to reuse it in
section_mismatch().

Also, move the variable 'check' inside the for-loop.

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