OSDN Git Service

kselftest/arm64: fix array_size.cocci warning
authorwangkailong@jari.cn <wangkailong@jari.cn>
Sun, 13 Nov 2022 09:41:10 +0000 (17:41 +0800)
committerWill Deacon <will@kernel.org>
Mon, 14 Nov 2022 14:43:49 +0000 (14:43 +0000)
commita75df5be8e7b0ecfb413b7c02a2599be17d2721b
tree2957388d735e41302c10cdc82b63666400bf84ed
parenta0fa0b63131b0d8f4eff22d5b66e796ecb064dfe
kselftest/arm64: fix array_size.cocci warning

Fix following coccicheck warning:

tools/testing/selftests/arm64/mte/check_mmap_options.c:64:24-25:
WARNING: Use ARRAY_SIZE
tools/testing/selftests/arm64/mte/check_mmap_options.c:66:20-21:
WARNING: Use ARRAY_SIZE
tools/testing/selftests/arm64/mte/check_mmap_options.c:135:25-26:
WARNING: Use ARRAY_SIZE
tools/testing/selftests/arm64/mte/check_mmap_options.c:96:25-26:
WARNING: Use ARRAY_SIZE
tools/testing/selftests/arm64/mte/check_mmap_options.c:190:24-25:
WARNING: Use ARRAY_SIZE

Signed-off-by: KaiLong Wang <wangkailong@jari.cn>
Link: https://lore.kernel.org/r/777ce8ba.12e.184705d4211.Coremail.wangkailong@jari.cn
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/mte/check_mmap_options.c