[PATCH v2 04/13] selftests/filesystems: file_stressor: Fix build warning
Guenter Roeck <[email protected]> Fri, 5 Dec 2025 09:09:58 -0800
| Newsgroups | gmane.linux.network,gmane.linux.kernel,gmane.comp.emulators.wine.devel,gmane.linux.kernel.bpf |
|---|---|
| Message-ID | <[email protected]> |
Fix
file_stressor.c:112:9: warning: unused variable 'pid_self'
by dropping the unused variable.
Fixes: aab154a442f9b ("selftests: add file SLAB_TYPESAFE_BY_RCU recycling stressor")
Cc: Christian Brauner <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
---
v2: Update subject and description to reflect that the patch fixes a build
warning.
tools/testing/selftests/filesystems/file_stressor.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/tools/testing/selftests/filesystems/file_stressor.c b/tools/testing/selftests/filesystems/file_stressor.c
index 01dd89f8e52f..4f314270298d 100644
--- a/tools/testing/selftests/filesystems/file_stressor.c
+++ b/tools/testing/selftests/filesystems/file_stressor.c
@@ -109,8 +109,6 @@ FIXTURE_TEARDOWN(file_stressor)
TEST_F_TIMEOUT(file_stressor, slab_typesafe_by_rcu, 900 * 2)
{
for (int i = 0; i < self->nr_procs; i++) {
- pid_t pid_self;
-
self->pids_openers[i] = fork();
ASSERT_GE(self->pids_openers[i], 0);
--
2.45.2