From: Amir Goldstein <amir73il@gmail.com>
To: Christian Brauner <brauner@kernel.org>
Cc: Jan Kara <jack@suse.cz>, John Hubbard <jhubbard@nvidia.com>,
Shuah Khan <skhan@linuxfoundation.org>,
linux-fsdevel@vger.kernel.org
Subject: [PATCH 1/5] selftests/filesystems: move wrapper.h out of overlayfs subdir
Date: Wed, 7 May 2025 22:42:58 +0200 [thread overview]
Message-ID: <20250507204302.460913-2-amir73il@gmail.com> (raw)
In-Reply-To: <20250507204302.460913-1-amir73il@gmail.com>
This is not an overlayfs specific header.
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
---
tools/testing/selftests/filesystems/overlayfs/Makefile | 2 +-
tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c | 2 +-
.../selftests/filesystems/overlayfs/set_layers_via_fds.c | 2 +-
tools/testing/selftests/filesystems/{overlayfs => }/wrappers.h | 0
tools/testing/selftests/mount_setattr/Makefile | 2 ++
tools/testing/selftests/mount_setattr/mount_setattr_test.c | 2 +-
6 files changed, 6 insertions(+), 4 deletions(-)
rename tools/testing/selftests/filesystems/{overlayfs => }/wrappers.h (100%)
diff --git a/tools/testing/selftests/filesystems/overlayfs/Makefile b/tools/testing/selftests/filesystems/overlayfs/Makefile
index 6c661232b3b5..d3ad4a77db9b 100644
--- a/tools/testing/selftests/filesystems/overlayfs/Makefile
+++ b/tools/testing/selftests/filesystems/overlayfs/Makefile
@@ -4,7 +4,7 @@ CFLAGS += -Wall
CFLAGS += $(KHDR_INCLUDES)
LDLIBS += -lcap
-LOCAL_HDRS += wrappers.h log.h
+LOCAL_HDRS += ../wrappers.h log.h
TEST_GEN_PROGS := dev_in_maps
TEST_GEN_PROGS += set_layers_via_fds
diff --git a/tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c b/tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c
index 3b796264223f..31db54b00e64 100644
--- a/tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c
+++ b/tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c
@@ -17,7 +17,7 @@
#include "../../kselftest.h"
#include "log.h"
-#include "wrappers.h"
+#include "../wrappers.h"
static long get_file_dev_and_inode(void *addr, struct statx *stx)
{
diff --git a/tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c b/tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
index 5074e64e74a8..dc0449fa628f 100644
--- a/tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
+++ b/tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
@@ -16,7 +16,7 @@
#include "../../pidfd/pidfd.h"
#include "log.h"
#include "../utils.h"
-#include "wrappers.h"
+#include "../wrappers.h"
FIXTURE(set_layers_via_fds) {
int pidfd;
diff --git a/tools/testing/selftests/filesystems/overlayfs/wrappers.h b/tools/testing/selftests/filesystems/wrappers.h
similarity index 100%
rename from tools/testing/selftests/filesystems/overlayfs/wrappers.h
rename to tools/testing/selftests/filesystems/wrappers.h
diff --git a/tools/testing/selftests/mount_setattr/Makefile b/tools/testing/selftests/mount_setattr/Makefile
index 0c0d7b1234c1..4d4f810cdf2c 100644
--- a/tools/testing/selftests/mount_setattr/Makefile
+++ b/tools/testing/selftests/mount_setattr/Makefile
@@ -2,6 +2,8 @@
# Makefile for mount selftests.
CFLAGS = -g $(KHDR_INCLUDES) -Wall -O2 -pthread
+LOCAL_HDRS += ../filesystems/wrappers.h
+
TEST_GEN_PROGS := mount_setattr_test
include ../lib.mk
diff --git a/tools/testing/selftests/mount_setattr/mount_setattr_test.c b/tools/testing/selftests/mount_setattr/mount_setattr_test.c
index 432d9af23ab2..9e933925b3c2 100644
--- a/tools/testing/selftests/mount_setattr/mount_setattr_test.c
+++ b/tools/testing/selftests/mount_setattr/mount_setattr_test.c
@@ -20,7 +20,7 @@
#include <stdarg.h>
#include <linux/mount.h>
-#include "../filesystems/overlayfs/wrappers.h"
+#include "../filesystems/wrappers.h"
#include "../kselftest_harness.h"
#ifndef CLONE_NEWNS
--
2.34.1
next prev parent reply other threads:[~2025-05-07 20:43 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-07 20:42 [PATCH 0/5] filesystems selftests cleanups Amir Goldstein
2025-05-07 20:42 ` Amir Goldstein [this message]
2025-05-08 7:31 ` [PATCH 1/5] selftests/filesystems: move wrapper.h out of overlayfs subdir John Hubbard
2025-05-07 20:42 ` [PATCH 2/5] selftests/fs/statmount: build with tools include dir Amir Goldstein
2025-05-08 7:30 ` John Hubbard
2025-05-08 11:36 ` Amir Goldstein
2025-05-08 19:30 ` John Hubbard
2025-05-08 20:29 ` Amir Goldstein
2025-05-09 10:57 ` Christian Brauner
2025-05-09 11:08 ` Amir Goldstein
2025-05-09 13:34 ` Amir Goldstein
2025-05-08 7:33 ` John Hubbard
2025-05-07 20:43 ` [PATCH 3/5] selftests/fs/mount-notify: " Amir Goldstein
2025-05-08 7:38 ` John Hubbard
2025-05-08 11:53 ` Amir Goldstein
2025-05-08 19:13 ` John Hubbard
2025-05-07 20:43 ` [PATCH 4/5] selftests/filesystems: create get_unique_mnt_id() helper Amir Goldstein
2025-05-08 7:43 ` John Hubbard
2025-05-08 11:44 ` Amir Goldstein
2025-05-08 19:35 ` John Hubbard
2025-05-09 2:52 ` John Hubbard
2025-05-07 20:43 ` [PATCH 5/5] selftests/filesystems: create setup_userns() helper Amir Goldstein
2025-05-08 7:52 ` John Hubbard
2025-05-08 12:08 ` Amir Goldstein
2025-05-09 10:54 ` Christian Brauner
2025-05-08 12:40 ` Amir Goldstein
2025-05-08 19:32 ` John Hubbard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250507204302.460913-2-amir73il@gmail.com \
--to=amir73il@gmail.com \
--cc=brauner@kernel.org \
--cc=jack@suse.cz \
--cc=jhubbard@nvidia.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).