KVM: arm64: Don't open code ARRAY_SIZE()
authorOliver Upton <oliver.upton@linux.dev>
Wed, 27 Jul 2022 14:29:05 +0000 (15:29 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 27 Jul 2022 17:18:38 +0000 (18:18 +0100)
commit62ae21627aa96f6ef361981dd181c74dc7aa314c
treec087793184ed00acbd5c2693598b2baecf441635
parent0e773da1e688a1425ef7deae58fa11c5c7e09533
KVM: arm64: Don't open code ARRAY_SIZE()

Use ARRAY_SIZE() instead of an open-coded version.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Kalesh Singh <kaleshsingh@google.com>
Tested-by: Kalesh Singh <kaleshsingh@google.com>
Link: https://lore.kernel.org/r/20220727142906.1856759-6-maz@kernel.org
arch/arm64/kvm/hyp/nvhe/stacktrace.c
arch/arm64/kvm/stacktrace.c