selftests: vDSO: vdso_test_abi: Use explicit indices for name array
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Tue, 12 Aug 2025 05:39:06 +0000 (07:39 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 9 Sep 2025 08:57:39 +0000 (10:57 +0200)
commit74b408ff06c39238edd66350cd0d4057787fc853
tree26223c10889df05a81783c7c91be3cc04f2c9cb5
parentd7516f25a90c554d25847634884179d8be2782c7
selftests: vDSO: vdso_test_abi: Use explicit indices for name array

The array relies on the numeric values of the clock IDs.
When reading the code it is not obvious that the order is correct.

Make the code easier to read by using explicit indices.

While at it make the array static.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250812-vdso-tests-fixes-v2-5-90f499dd35f8@linutronix.de
tools/testing/selftests/vDSO/vdso_test_abi.c