summaryrefslogtreecommitdiffstats
path: root/samples/vfs/Makefile
diff options
context:
space:
mode:
authorDavid Howells2018-11-02 00:36:32 +0100
committerAl Viro2019-03-20 23:49:06 +0100
commitf1b5618e013af28b3c78daf424436a79674423c0 (patch)
tree7fea6c6bb8ef683b92fcabaa9e3f48ed2ec8eeb0 /samples/vfs/Makefile
parentvfs: syscall: Add fspick() to select a superblock for reconfiguration (diff)
downloadkernel-qcow2-linux-f1b5618e013af28b3c78daf424436a79674423c0.tar.gz
kernel-qcow2-linux-f1b5618e013af28b3c78daf424436a79674423c0.tar.xz
kernel-qcow2-linux-f1b5618e013af28b3c78daf424436a79674423c0.zip
vfs: Add a sample program for the new mount API
Add a sample program to demonstrate fsopen/fsmount/move_mount to mount something. To make it compile on all arches, irrespective of whether or not syscall numbers are assigned, define the syscall number to -1 if it isn't to cause the kernel to return -ENOSYS. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'samples/vfs/Makefile')
-rw-r--r--samples/vfs/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/samples/vfs/Makefile b/samples/vfs/Makefile
new file mode 100644
index 000000000000..4ac9690fb3c4
--- /dev/null
+++ b/samples/vfs/Makefile
@@ -0,0 +1,10 @@
+# List of programs to build
+hostprogs-$(CONFIG_SAMPLE_VFS) := \
+ test-fsmount \
+ test-statx
+
+# Tell kbuild to always build the programs
+always := $(hostprogs-y)
+
+HOSTCFLAGS_test-fsmount.o += -I$(objtree)/usr/include
+HOSTCFLAGS_test-statx.o += -I$(objtree)/usr/include