selftests/filesystems: move wrapper.h out of overlayfs subdir

This is not an overlayfs specific header.

Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Link: https://lore.kernel.org/20250509133240.529330-2-amir73il@gmail.com
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
Amir Goldstein 2025-05-09 15:32:33 +02:00 committed by Christian Brauner
parent d37d4720c3
commit 0bd92b9fe5
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2
6 changed files with 6 additions and 4 deletions

View file

@ -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

View file

@ -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)
{

View file

@ -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;

View file

@ -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

View file

@ -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