]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: openat2: switch from custom ARRAY_LEN to ARRAY_SIZE
authorAleksa Sarai <aleksa@amutable.com>
Wed, 1 Apr 2026 00:28:04 +0000 (11:28 +1100)
committerChristian Brauner <brauner@kernel.org>
Thu, 21 May 2026 08:53:25 +0000 (10:53 +0200)
commit582c904573a63eac7ecbac1a285899ffbf0d43ac
treebe14b5048973717279886fc44c9dfaa5992d58d5
parentd2fcf57ffc3b85b816550b3ee404ffcc83ace16c
selftests: openat2: switch from custom ARRAY_LEN to ARRAY_SIZE

For whatever reason, the original version of the tests used a custom
version of ARRAY_SIZE, but ARRAY_SIZE works just as well.

Signed-off-by: Aleksa Sarai <aleksa@amutable.com>
Link: https://patch.msgid.link/20260401-openat2-selftests-kunit-v2-3-ad153a07da0c@amutable.com
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
tools/testing/selftests/filesystems/openat2/helpers.h
tools/testing/selftests/filesystems/openat2/openat2_test.c
tools/testing/selftests/filesystems/openat2/resolve_test.c