Hi Al, After merging the vfs tree, today's linux-next build (powerpc allyesconfig) failed like this: samples/mount_api/test-fsmount.c: In function 'fsopen': samples/mount_api/test-fsmount.c:63:17: error: '__NR_fsopen' undeclared (first use in this function); did you mean 'fsopen'? return syscall(__NR_fsopen, fs_name, flags); ^~~~~~~~~~~ fsopen samples/mount_api/test-fsmount.c:63:17: note: each undeclared identifier is reported only once for each function it appears in samples/mount_api/test-fsmount.c: In function 'fsmount': samples/mount_api/test-fsmount.c:68:17: error: '__NR_fsmount' undeclared (first use in this function); did you mean 'fsmount'? return syscall(__NR_fsmount, fsfd, flags, ms_flags); ^~~~~~~~~~~~ fsmount samples/mount_api/test-fsmount.c: In function 'fsconfig': samples/mount_api/test-fsmount.c:74:17: error: '__NR_fsconfig' undeclared (first use in this function); did you mean 'fsconfig'? return syscall(__NR_fsconfig, fsfd, cmd, key, val, aux); ^~~~~~~~~~~~~ fsconfig samples/mount_api/test-fsmount.c: In function 'move_mount': samples/mount_api/test-fsmount.c:81:17: error: '__NR_move_mount' undeclared (first use in this function); did you mean 'move_mount'? return syscall(__NR_move_mount, ^~~~~~~~~~~~~~~ move_mount samples/statx/test-fs-query.c: In function 'fsopen': samples/statx/test-fs-query.c:32:17: error: '__NR_fsopen' undeclared (first use in this function); did you mean 'fsopen'? return syscall(__NR_fsopen, fs_name, flags); ^~~~~~~~~~~ fsopen samples/statx/test-fs-query.c:32:17: note: each undeclared identifier is reported only once for each function it appears in samples/statx/test-fs-query.c: In function 'fsinfo': samples/statx/test-fs-query.c:38:17: error: '__NR_fsinfo' undeclared (first use in this function); did you mean 'fsinfo'? return syscall(__NR_fsinfo, dfd, filename, params, buffer, buf_size); ^~~~~~~~~~~ fsinfo samples/statx/test-fsinfo.c: In function 'fsinfo': samples/statx/test-fsinfo.c:37:17: error: '__NR_fsinfo' undeclared (first use in this function); did you mean 'fsinfo'? return syscall(__NR_fsinfo, dfd, filename, params, buffer, buf_size); ^~~~~~~~~~~ fsinfo samples/statx/test-fsinfo.c:37:17: note: each undeclared identifier is reported only once for each function it appears in samples/statx/test-fsinfo.c: In function 'dump_attr_LIMITS': samples/statx/test-fsinfo.c:180:30: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type '__u64' {aka 'long unsigned int'} [-Wformat=] printf("\tmax file size: %llx\n", f->max_file_size); ~~~^ ~~~~~~~~~~~~~~~~ %lx samples/statx/test-fsinfo.c:181:32: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type '__u64' {aka 'long unsigned int'} [-Wformat=] printf("\tmax ids : u=%llx g=%llx p=%llx\n", ~~~^ %lx f->max_uid, f->max_gid, f->max_projid); ~~~~~~~~~~ samples/statx/test-fsinfo.c:181:39: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type '__u64' {aka 'long unsigned int'} [-Wformat=] printf("\tmax ids : u=%llx g=%llx p=%llx\n", ~~~^ %lx f->max_uid, f->max_gid, f->max_projid); ~~~~~~~~~~ samples/statx/test-fsinfo.c:181:46: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type '__u64' {aka 'long unsigned int'} [-Wformat=] printf("\tmax ids : u=%llx g=%llx p=%llx\n", ~~~^ %lx f->max_uid, f->max_gid, f->max_projid); ~~~~~~~~~~~~~ samples/statx/test-fsinfo.c: In function 'dump_attr_SUPPORTS': samples/statx/test-fsinfo.c:197:24: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type '__u64' {aka 'long unsigned int'} [-Wformat=] printf("\tstx_attr=%llx\n", f->stx_attributes); ~~~^ ~~~~~~~~~~~~~~~~~ %lx samples/statx/test-statx.c: In function 'dump_statx': samples/statx/test-statx.c:160:29: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type '__u64' {aka 'long unsigned int'} [-Wformat=] printf("Attributes: %016llx (", stx->stx_attributes); ~~~~~~^ ~~~~~~~~~~~~~~~~~~~ %016lx Caused by commits 3e83f58bcc4f ("vfs: Add a sample program for the new mount API") 67f668a6a913 ("vfs: syscall: Add fsinfo() to query filesystem information") I have added the following patch for today: From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> Date: Thu, 6 Sep 2018 12:15:23 +1000 Subject: [PATCH] mark samples/{mount_api,statx} as broken again Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> --- samples/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/Kconfig b/samples/Kconfig index 1c5658bc6224..daa17e9f3197 100644 --- a/samples/Kconfig +++ b/samples/Kconfig @@ -148,11 +148,13 @@ config SAMPLE_VFIO_MDEV_MBOCHS config SAMPLE_STATX bool "Build example extended-stat using code" + depends on BROKEN help Build example userspace program to use the new extended-stat syscall. config SAMPLE_MOUNT_API bool "Build example code using the new mount API" + depends on BROKEN help Build example userspace program(s) that use the new mount API. -- 2.18.0 -- Cheers, Stephen Rothwell
Attachment:
pgpGRVKfOkH9v.pgp
Description: OpenPGP digital signature