[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251204161729.2448052-8-linux@roeck-us.net>
Date: Thu, 4 Dec 2025 08:17:21 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: Shuah Khan <shuah@...nel.org>
Cc: Christian Brauner <brauner@...nel.org>,
Elizabeth Figura <zfigura@...eweavers.com>,
Thomas Gleixner <tglx@...utronix.de>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Kees Cook <kees@...nel.org>,
linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org,
wine-devel@...ehq.org,
netdev@...r.kernel.org,
bpf@...r.kernel.org,
Guenter Roeck <linux@...ck-us.net>,
André Almeida <andrealmeid@...lia.com>
Subject: [PATCH 07/13] selftest/futex: Comment out test_futex_mpol
test_futex_mpol() is not called, resulting in
futex_numa_mpol.c:134:13: error: ‘test_futex_mpol’ defined but not used
if built with -Werror. Disable the function but keep it in case it was
supposed to be used.
Fixes: d35ca2f64272 ("selftests/futex: Refactor futex_numa_mpol with kselftest_harness.h")
Cc: André Almeida <andrealmeid@...lia.com>
Signed-off-by: Guenter Roeck <linux@...ck-us.net>
---
tools/testing/selftests/futex/functional/futex_numa_mpol.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/testing/selftests/futex/functional/futex_numa_mpol.c b/tools/testing/selftests/futex/functional/futex_numa_mpol.c
index d037a3f10ee8..8e3d17d66684 100644
--- a/tools/testing/selftests/futex/functional/futex_numa_mpol.c
+++ b/tools/testing/selftests/futex/functional/futex_numa_mpol.c
@@ -131,10 +131,12 @@ static void test_futex(void *futex_ptr, int err_value)
__test_futex(futex_ptr, err_value, FUTEX2_SIZE_U32 | FUTEX_PRIVATE_FLAG | FUTEX2_NUMA);
}
+#ifdef NOTUSED
static void test_futex_mpol(void *futex_ptr, int err_value)
{
__test_futex(futex_ptr, err_value, FUTEX2_SIZE_U32 | FUTEX_PRIVATE_FLAG | FUTEX2_NUMA | FUTEX2_MPOL);
}
+#endif
TEST(futex_numa_mpol)
{
--
2.43.0
Powered by blists - more mailing lists