]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: openat2: move helpers to header
authorAleksa Sarai <aleksa@amutable.com>
Wed, 1 Apr 2026 00:28:03 +0000 (11:28 +1100)
committerChristian Brauner <brauner@kernel.org>
Thu, 21 May 2026 08:53:22 +0000 (10:53 +0200)
commitd2fcf57ffc3b85b816550b3ee404ffcc83ace16c
treec62897f25942d8b896b32cc5bc7dae8945b06bb6
parentfe087927046cdbc7365bef4650d2d5451ce1ea8a
selftests: openat2: move helpers to header

This is a bit ugly, but in the next patch we will move to using
kselftest_harness.h -- which doesn't play well with being included in
multiple compilation units due to duplicate function definitions.

Not including kselftest_harness.h would let us avoid this patch, but the
helpers will need include kselftest_harness.h in order to switch to
TH_LOG.

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