Skip to content

Commit 0bd92b9

Browse files
amir73ilbrauner
authored andcommitted
selftests/filesystems: move wrapper.h out of overlayfs subdir
This is not an overlayfs specific header. Reviewed-by: John Hubbard <[email protected]> Signed-off-by: Amir Goldstein <[email protected]> Link: https://lore.kernel.org/[email protected] Reviewed-by: Christian Brauner <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent d37d472 commit 0bd92b9

File tree

6 files changed

+6
-4
lines changed

6 files changed

+6
-4
lines changed

tools/testing/selftests/filesystems/overlayfs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CFLAGS += -Wall
44
CFLAGS += $(KHDR_INCLUDES)
55
LDLIBS += -lcap
66

7-
LOCAL_HDRS += wrappers.h log.h
7+
LOCAL_HDRS += ../wrappers.h log.h
88

99
TEST_GEN_PROGS := dev_in_maps
1010
TEST_GEN_PROGS += set_layers_via_fds

tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#include "../../kselftest.h"
1919
#include "log.h"
20-
#include "wrappers.h"
20+
#include "../wrappers.h"
2121

2222
static long get_file_dev_and_inode(void *addr, struct statx *stx)
2323
{

tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "../../pidfd/pidfd.h"
1717
#include "log.h"
1818
#include "../utils.h"
19-
#include "wrappers.h"
19+
#include "../wrappers.h"
2020

2121
FIXTURE(set_layers_via_fds) {
2222
int pidfd;

tools/testing/selftests/mount_setattr/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# Makefile for mount selftests.
33
CFLAGS = -g $(KHDR_INCLUDES) -Wall -O2 -pthread
44

5+
LOCAL_HDRS += ../filesystems/wrappers.h
6+
57
TEST_GEN_PROGS := mount_setattr_test
68

79
include ../lib.mk

tools/testing/selftests/mount_setattr/mount_setattr_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <stdarg.h>
2121
#include <linux/mount.h>
2222

23-
#include "../filesystems/overlayfs/wrappers.h"
23+
#include "../filesystems/wrappers.h"
2424
#include "../kselftest_harness.h"
2525

2626
#ifndef CLONE_NEWNS

0 commit comments

Comments
 (0)