diff options
author | David Howells <dhowells@redhat.com> | 2018-11-02 02:36:32 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-03-21 01:49:06 +0300 |
commit | f1b5618e013af28b3c78daf424436a79674423c0 (patch) | |
tree | 7fea6c6bb8ef683b92fcabaa9e3f48ed2ec8eeb0 /samples/vfs/Makefile | |
parent | cf3cba4a429be43e5527a3f78859b1bfd9ebc5fb (diff) | |
download | linux-f1b5618e013af28b3c78daf424436a79674423c0.tar.xz |
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/Makefile | 10 |
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 |