]> 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)
commit548ff74687fbe09a5fee44f143ab2f17b3dbb07f
treeefdd5e9901d8fe8901d4c293fc4a61d0fc02bae1
parent374febb553b1c9f5c65c4ea395a2cda3a4cc90b5
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