linux-next: build failure after merge of the staging tree
Subsystems (2)
Hi Greg,
After merging the staging tree, today's linux-next build (x86_64 allmodconfig) failed like this:
drivers/staging/erofs/super.c: In function 'erofs_read_super':drivers/staging/erofs/super.c:343:17: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'?
sb->s_flags |= MS_RDONLY | MS_NOATIME;
^~~~~~~~~
IS_RDONLY
drivers/staging/erofs/super.c:343:17: note: each undeclared identifier is reported only once for each function it appears in
drivers/staging/erofs/super.c:343:29: error: 'MS_NOATIME' undeclared (first use in this function); did you mean 'S_NOATIME'?
sb->s_flags |= MS_RDONLY | MS_NOATIME;
^~~~~~~~~~
S_NOATIME
drivers/staging/erofs/super.c: In function 'erofs_mount':
drivers/staging/erofs/super.c:501:10: warning: passing argument 5 of 'mount_bdev' makes integer from pointer without a cast [-Wint-conversion]
&priv, erofs_fill_super);
^~~~~~~~~~~~~~~~In file included from include/linux/buffer_head.h:12:0,
from drivers/staging/erofs/super.c:14:include/linux/fs.h:2151:23: note: expected 'size_t {aka long unsigned int}' but argument is of type 'int (*)(struct super_block *, void *, int)'
extern struct dentry *mount_bdev(struct file_system_type *fs_type,
^~~~~~~~~~
drivers/staging/erofs/super.c:500:9: error: too few arguments to function 'mount_bdev'
return mount_bdev(fs_type, flags, dev_name,
^~~~~~~~~~In file included from include/linux/buffer_head.h:12:0,
from drivers/staging/erofs/super.c:14:include/linux/fs.h:2151:23: note: declared here
extern struct dentry *mount_bdev(struct file_system_type *fs_type,
^~~~~~~~~~
drivers/staging/erofs/super.c: At top level:
drivers/staging/erofs/super.c:518:20: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.mount = erofs_mount,
^~~~~~~~~~~
drivers/staging/erofs/super.c:518:20: note: (near initialization for 'erofs_fs_type.mount')
drivers/staging/erofs/super.c: In function 'erofs_remount':
drivers/staging/erofs/super.c:630:12: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'?
*flags |= MS_RDONLY;
^~~~~~~~~
IS_RDONLY
drivers/staging/erofs/super.c: At top level:
drivers/staging/erofs/super.c:640:16: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.remount_fs = erofs_remount,
^~~~~~~~~~~~~Caused by various commits creating erofs in the staging tree interacting with various commits redoing the mount infrastructure in the vfs tree.
I have disabed CONFIG_EROFS_FS for now:
From: Stephen Rothwell <[email protected]>
Date: Mon, 30 Jul 2018 16:10:57 +1000
Subject: [PATCH] disable erofs for now
--- drivers/staging/erofs/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/staging/erofs/Kconfig +1 -0
@@ -3,6 +3,7 @@ config EROFS_FS tristate "EROFS filesystem support" depends on BLOCK + depends on BROKEN help EROFS(Enhanced Read-Only File System) is a lightweight read-only file system with modern designs (eg. page-sized
Signature · 5 lines
2.18.0 -- Cheers, Stephen Rothwell
Hi Stephen,
Quoted 47 lines · Stephen Rothwell
Hi Greg,
After merging the staging tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/staging/erofs/super.c: In function 'erofs_read_super':drivers/staging/erofs/super.c:343:17: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'?sb->s_flags |= MS_RDONLY | MS_NOATIME; ^~~~~~~~~ IS_RDONLY drivers/staging/erofs/super.c:343:17: note: each undeclared identifier is reported only once for each function it appears in drivers/staging/erofs/super.c:343:29: error: 'MS_NOATIME' undeclared (first use in this function); did you mean 'S_NOATIME'? sb->s_flags |= MS_RDONLY | MS_NOATIME; ^~~~~~~~~~ S_NOATIME drivers/staging/erofs/super.c: In function 'erofs_mount': drivers/staging/erofs/super.c:501:10: warning: passing argument 5 of 'mount_bdev' makes integer from pointer without a cast [-Wint-conversion] &priv, erofs_fill_super); ^~~~~~~~~~~~~~~~In file included from
include/linux/buffer_head.h:12:0,
fromdrivers/staging/erofs/super.c:14:include/linux/fs.h:2151:23: note: expected 'size_t{aka long unsigned int}' but argument is of type 'int (*)(structsuper_block*, void *, int)'
extern struct dentry *mount_bdev(structfile_system_type*fs_type,^~~~~~~~~~ drivers/staging/erofs/super.c:500:9: error: too few arguments to function 'mount_bdev' return mount_bdev(fs_type, flags, dev_name, ^~~~~~~~~~In file included from
include/linux/buffer_head.h:12:0,
fromdrivers/staging/erofs/super.c:14:include/linux/fs.h:2151:23: note: declared here
extern struct dentry *mount_bdev(structfile_system_type*fs_type,^~~~~~~~~~ drivers/staging/erofs/super.c: At top level: drivers/staging/erofs/super.c:518:20: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .mount = erofs_mount, ^~~~~~~~~~~ drivers/staging/erofs/super.c:518:20: note: (near initialization for 'erofs_fs_type.mount') drivers/staging/erofs/super.c: In function 'erofs_remount': drivers/staging/erofs/super.c:630:12: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'? *flags |= MS_RDONLY; ^~~~~~~~~ IS_RDONLY drivers/staging/erofs/super.c: At top level: drivers/staging/erofs/super.c:640:16: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .remount_fs = erofs_remount, ^~~~~~~~~~~~~
Quoted 4 lines
Caused by various commits creating erofs in the staging tree interacting with various commits redoing the mount infrastructure in the vfs tree.
I have disabed
CONFIG_EROFS_FSfor now:
I will fix them as soon as possible, and test it with the latest linux-next code. It seems caused by some vfs changes.
Thanks,
Gao Xiang
Quoted 1 line · Gao Xiang
Quoted 1 line
sb->s_flags |= MS_RDONLY | MS_NOATIME;
This should be using SB_* rather than MS_* for interaction with sb->s_flags.
Quoted 4 lines
Quoted 4 lines
drivers/staging/erofs/super.c: In function 'erofs_mount':drivers/staging/erofs/super.c:501:10: warning: passing argument 5 of 'mount_bdev' makes integer from pointer without a cast [-Wint-conversion]&priv, erofs_fill_super); ^~~~~~~~~~~~~~~~
Quoted 8 lines
Quoted 8 lines
In file included from
include/linux/buffer_head.h:12:0,
fromdrivers/staging/erofs/super.c:14:include/linux/fs.h:2151:23: note: expected 'size_t{aka long unsigned int}' but argument is of type 'int (*)(structsuper_block*, void *, int)'
extern struct dentry *mount_bdev(structfile_system_type*fs_type,^~~~~~~~~~ drivers/staging/erofs/super.c:500:9: error: too few arguments to function 'mount_bdev' return mount_bdev(fs_type, flags, dev_name, ^~~~~~~~~~
There's a patch in Al Viro's tree that passes a size_t argument indicating the size of the mount data from mount down into the filesystem and into the helpers as the data may be on a kernel stack or in kernel .rodata rather than in a full page of its own.
https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git
Currently this is commit 0a191e4505a4f255e6513b49426213da69bf0e80
vfs: Require specification of size of mount data for internal mounts
David
Hi David,
Thanks for your reply :)
Quoted 5 lines · David Howells
Quoted 1 line · Gao Xiang
Quoted 1 line
sb->s_flags |= MS_RDONLY | MS_NOATIME;This should be using SB_* rather than MS_* for interaction with
sb->s_flags.
Yes, I saw the related discussion and your submission in the linux-fsdevel mailing list last year. :D The code of erofs once had to support from 3.13 ~ the current kernel, therefore I didn't turn MS_RDONLY into SB_RDONLY. But it seems that "vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled" tends to remove them all.
I have submitted a patch to linux-erofs mailing list for preview.
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000282.html
Quoted 19 lines
Quoted 13 lines
Quoted 5 lines
drivers/staging/erofs/super.c: In function 'erofs_mount':drivers/staging/erofs/super.c:501:10: warning: passing argument 5 of 'mount_bdev' makes integer from pointer without a cast [-Wint-conversion]&priv, erofs_fill_super); ^~~~~~~~~~~~~~~~Quoted 8 lines
In file included from
include/linux/buffer_head.h:12:0,
fromdrivers/staging/erofs/super.c:14:include/linux/fs.h:2151:23: note: expected 'size_t{aka long unsigned int}' but argument is of type 'int (*)(structsuper_block*, void *, int)'
extern struct dentry *mount_bdev(structfile_system_type*fs_type,^~~~~~~~~~ drivers/staging/erofs/super.c:500:9: error: too few arguments to function 'mount_bdev' return mount_bdev(fs_type, flags, dev_name, ^~~~~~~~~~There's a patch in Al Viro's tree that passes a
size_targument indicating the size of the mount data from mount down into the filesystem and into the helpers as the data may be on a kernel stack or in kernel .rodata rather than in a full page of its own.
Quoted 5 lines
https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git
Currently this is commit
0a191e4505a4f255e6513b49426213da69bf0e80vfs: Require specification of size of mount data for internal mounts
I just fixed according to the latest linux-next tree (the same patchset, also for preview)
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000284.html
Once I tend to use void *data to pass more mount arguments on stack, eg.
struct erofs_mount_private {
const char *dev_name;
char *options;
};...
struct erofs_mount_private priv = {
.dev_name = dev_name,
.options = data
};
return mount_bdev(fs_type, flags, dev_name, &priv, erofs_fill_super);
However, I have no idea if it is safe to do so in the future, so I also change it into a more stardard way.
BTW, It seems that Greg's staging tree doesn't have Al Viro's submission... And I have little experience to handle that, so I just ask Chao for help...
Thanks for your kindly reminder :)
Thanks,
Gao Xiang
Quoted 3 lines
David
Quoted 9 lines · Gao Xiang
struct
erofs_mount_privatepriv = {
.dev_name =dev_name,
.options = data
};
returnmount_bdev(fs_type, flags, dev_name, &priv, erofs_fill_super);However, I have no idea if it is safe to do so in the future, so I also change it into a more stardard way.
Hopefully, in the near future, you won't do it like this at all, but rather create an fs_context and then your filesystem would be able to munge that directly before calling mount_bdev().
David
Quoted 9 lines · David Howells
Quoted 7 lines · Gao Xiang
struct
erofs_mount_privatepriv = {
.dev_name =dev_name,
.options = data
};
returnmount_bdev(fs_type, flags, dev_name, &priv, erofs_fill_super);
Quoted 7 lines
Quoted 2 lines
However, I have no idea if it is safe to do so in the future, so I also change it into a more stardard way.
Hopefully, in the near future, you won't do it like this at all, but rather create an
fs_contextand then your filesystem would be able to munge that directly before callingmount_bdev().
OK, got you. Look forword to the new fs_context feature and thanks for your help :)
Thanks,
Gao Xiang
Quoted 2 lines
David
Hi Stephen,
Quoted 54 lines · Gao Xiang
Hi Stephen,
Quoted 51 lines · Stephen Rothwell
Hi Greg,
After merging the staging tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/staging/erofs/super.c: In function 'erofs_read_super':drivers/staging/erofs/super.c:343:17: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'?sb->s_flags |= MS_RDONLY | MS_NOATIME; ^~~~~~~~~ IS_RDONLY drivers/staging/erofs/super.c:343:17: note: each undeclared identifier is reported only once for each function it appears in drivers/staging/erofs/super.c:343:29: error: 'MS_NOATIME' undeclared (first use in this function); did you mean 'S_NOATIME'? sb->s_flags |= MS_RDONLY | MS_NOATIME; ^~~~~~~~~~ S_NOATIME drivers/staging/erofs/super.c: In function 'erofs_mount': drivers/staging/erofs/super.c:501:10: warning: passing argument 5 of 'mount_bdev' makes integer from pointer without a cast [-Wint-conversion] &priv, erofs_fill_super); ^~~~~~~~~~~~~~~~In file included from
include/linux/buffer_head.h:12:0,
fromdrivers/staging/erofs/super.c:14:include/linux/fs.h:2151:23: note: expected 'size_t{aka long unsigned int}' but argument is of type 'int (*)(structsuper_block*, void *, int)'
extern struct dentry *mount_bdev(structfile_system_type*fs_type,^~~~~~~~~~ drivers/staging/erofs/super.c:500:9: error: too few arguments to function 'mount_bdev' return mount_bdev(fs_type, flags, dev_name, ^~~~~~~~~~In file included from
include/linux/buffer_head.h:12:0,
fromdrivers/staging/erofs/super.c:14:include/linux/fs.h:2151:23: note: declared here
extern struct dentry *mount_bdev(structfile_system_type*fs_type,^~~~~~~~~~ drivers/staging/erofs/super.c: At top level: drivers/staging/erofs/super.c:518:20: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .mount = erofs_mount, ^~~~~~~~~~~ drivers/staging/erofs/super.c:518:20: note: (near initialization for 'erofs_fs_type.mount') drivers/staging/erofs/super.c: In function 'erofs_remount': drivers/staging/erofs/super.c:630:12: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'? *flags |= MS_RDONLY; ^~~~~~~~~ IS_RDONLY drivers/staging/erofs/super.c: At top level: drivers/staging/erofs/super.c:640:16: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .remount_fs = erofs_remount, ^~~~~~~~~~~~~Caused by various commits creating erofs in the staging tree interacting with various commits redoing the mount infrastructure in the vfs tree.
I have disabed
CONFIG_EROFS_FSfor now:
Xiang has submitted several patches as below to fix compiling error on -next tree, could you consider to merge those temporary fixes into -next after merging staging-next's updates, and reenable CONFIG_EROFS_FS for further integrity compiling and test?
staging: erofs: fix superblock/inode flags (MS_RDONLY -> SB_RDONLY, S_NOATIME)
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000282.html
staging: erofs: remove RADIX_TREE_EXCEPTIONAL_{ENTRY, SHIFT}
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000283.html
staging: erofs: update .mount and .remount_sb
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000285.html
BTW, for this condition that erofs was not covered by some common vfs stuff changes in other one's tree, who should take care of those missing fixes during coming next merge window?
Thanks,
Quoted 9 lines
I will fix them as soon as possible, and test it with the latest linux-next code. It seems caused by some vfs changes.
Thanks,
Gao Xiang.
Hi Chao,
Quoted 6 lines · On Wed, 1 Aug 2018 17:09:13 +0800 Chao Yu <[email protected]> wrote:
Xiang has submitted several patches as below to fix compiling error on -next tree, could you consider to merge those temporary fixes into -next after merging staging-next's updates, and reenable
CONFIG_EROFS_FSfor further integrity compiling and test?
Quoted 8 lines
staging: erofs: fix superblock/inode flags (
MS_RDONLY->SB_RDONLY,S_NOATIME)
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000282.htmlstaging: erofs: remove RADIX_TREE_EXCEPTIONAL_{ENTRY, SHIFT}
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000283.htmlstaging: erofs: update .mount and .remount_sb
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000285.html
OK, I will apply those tomorrow (actually later today :-)) and and stop disabling CONFIG_EROFS_FS.
Quoted 3 lines
BTW, for this condition that erofs was not covered by some common vfs stuff changes in other one's tree, who should take care of those missing fixes during coming next merge window?
It might be easiest for Greg to add the disabling CONFIG_EROFS_FS patch to the staging tree itself for his first pull request during the merge window and then send a second pull request (after the vfs and maybe the Xarray stuff has been merged by Linus) with these patches followed by a revert of the disabling patch.
Signature · 2 lines
Cheers, Stephen Rothwell
Hi Stephen,
Sorry, yesterday I missed this email due to my email filter.
Quoted 12 lines · Stephen Rothwell
Hi Chao,
Quoted 9 lines · On Wed, 1 Aug 2018 17:09:13 +0800 Chao Yu <[email protected]> wrote:
Xiang has submitted several patches as below to fix compiling error on -next tree, could you consider to merge those temporary fixes into -next after merging staging-next's updates, and reenable
CONFIG_EROFS_FSfor further integrity compiling and test?staging: erofs: fix superblock/inode flags (
MS_RDONLY->SB_RDONLY,S_NOATIME)
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000282.html
Quoted 8 lines
Quoted 5 lines
staging: erofs: remove RADIX_TREE_EXCEPTIONAL_{ENTRY, SHIFT}
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000283.htmlstaging: erofs: update .mount and .remount_sb
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000285.htmlOK, I will apply those tomorrow (actually later today :-)) and and stop disabling
CONFIG_EROFS_FS.
OK, thanks for doing that, I and Xiang will keep an eye on compile result.
Quoted 10 lines
Quoted 4 lines
BTW, for this condition that erofs was not covered by some common vfs stuff changes in other one's tree, who should take care of those missing fixes during coming next merge window?
It might be easiest for Greg to add the disabling
CONFIG_EROFS_FSpatch to the staging tree itself for his first pull request during the merge window and then send a second pull request (after the vfs and maybe the Xarray stuff has been merged by Linus) with these patches followed by a revert of the disabling patch.
Thanks for the advice, I think that's a good way to solve the issue, let me send a patch to disable erofs compiling temporarily to avoid conflict during merge window. :)
Thanks,
Quoted 1 line
Quoted 63 lines · Chao Yu
Hi Stephen,
Quoted 54 lines · Gao Xiang
Hi Stephen,
Quoted 51 lines · Stephen Rothwell
Hi Greg,
After merging the staging tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/staging/erofs/super.c: In function 'erofs_read_super':drivers/staging/erofs/super.c:343:17: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'?sb->s_flags |= MS_RDONLY | MS_NOATIME; ^~~~~~~~~ IS_RDONLY drivers/staging/erofs/super.c:343:17: note: each undeclared identifier is reported only once for each function it appears in drivers/staging/erofs/super.c:343:29: error: 'MS_NOATIME' undeclared (first use in this function); did you mean 'S_NOATIME'? sb->s_flags |= MS_RDONLY | MS_NOATIME; ^~~~~~~~~~ S_NOATIME drivers/staging/erofs/super.c: In function 'erofs_mount': drivers/staging/erofs/super.c:501:10: warning: passing argument 5 of 'mount_bdev' makes integer from pointer without a cast [-Wint-conversion] &priv, erofs_fill_super); ^~~~~~~~~~~~~~~~In file included from
include/linux/buffer_head.h:12:0,
fromdrivers/staging/erofs/super.c:14:include/linux/fs.h:2151:23: note: expected 'size_t{aka long unsigned int}' but argument is of type 'int (*)(structsuper_block*, void *, int)'
extern struct dentry *mount_bdev(structfile_system_type*fs_type,^~~~~~~~~~ drivers/staging/erofs/super.c:500:9: error: too few arguments to function 'mount_bdev' return mount_bdev(fs_type, flags, dev_name, ^~~~~~~~~~In file included from
include/linux/buffer_head.h:12:0,
fromdrivers/staging/erofs/super.c:14:include/linux/fs.h:2151:23: note: declared here
extern struct dentry *mount_bdev(structfile_system_type*fs_type,^~~~~~~~~~ drivers/staging/erofs/super.c: At top level: drivers/staging/erofs/super.c:518:20: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .mount = erofs_mount, ^~~~~~~~~~~ drivers/staging/erofs/super.c:518:20: note: (near initialization for 'erofs_fs_type.mount') drivers/staging/erofs/super.c: In function 'erofs_remount': drivers/staging/erofs/super.c:630:12: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'? *flags |= MS_RDONLY; ^~~~~~~~~ IS_RDONLY drivers/staging/erofs/super.c: At top level: drivers/staging/erofs/super.c:640:16: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .remount_fs = erofs_remount, ^~~~~~~~~~~~~Caused by various commits creating erofs in the staging tree interacting with various commits redoing the mount infrastructure in the vfs tree.
I have disabed
CONFIG_EROFS_FSfor now:Xiang has submitted several patches as below to fix compiling error on -next tree, could you consider to merge those temporary fixes into -next after merging staging-next's updates, and reenable
CONFIG_EROFS_FSfor further integrity compiling and test?
Quoted 8 lines
staging: erofs: fix superblock/inode flags (
MS_RDONLY->SB_RDONLY,S_NOATIME)
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000282.htmlstaging: erofs: remove RADIX_TREE_EXCEPTIONAL_{ENTRY, SHIFT}
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000283.htmlstaging: erofs: update .mount and .remount_sb
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000285.html
Why have these not been submitted to me for inclusion in my tree?
thanks,
greg k-h
Hi Greg,
Quoted 67 lines · Greg KH
Quoted 66 lines · Chao Yu
Hi Stephen,
Quoted 54 lines · Gao Xiang
Hi Stephen,
Quoted 51 lines · Stephen Rothwell
Hi Greg,
After merging the staging tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/staging/erofs/super.c: In function 'erofs_read_super':drivers/staging/erofs/super.c:343:17: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'?sb->s_flags |= MS_RDONLY | MS_NOATIME; ^~~~~~~~~ IS_RDONLY drivers/staging/erofs/super.c:343:17: note: each undeclared identifier is reported only once for each function it appears in drivers/staging/erofs/super.c:343:29: error: 'MS_NOATIME' undeclared (first use in this function); did you mean 'S_NOATIME'? sb->s_flags |= MS_RDONLY | MS_NOATIME; ^~~~~~~~~~ S_NOATIME drivers/staging/erofs/super.c: In function 'erofs_mount': drivers/staging/erofs/super.c:501:10: warning: passing argument 5 of 'mount_bdev' makes integer from pointer without a cast [-Wint-conversion] &priv, erofs_fill_super); ^~~~~~~~~~~~~~~~In file included from
include/linux/buffer_head.h:12:0,
fromdrivers/staging/erofs/super.c:14:include/linux/fs.h:2151:23: note: expected 'size_t{aka long unsigned int}' but argument is of type 'int (*)(structsuper_block*, void *, int)'
extern struct dentry *mount_bdev(structfile_system_type*fs_type,^~~~~~~~~~ drivers/staging/erofs/super.c:500:9: error: too few arguments to function 'mount_bdev' return mount_bdev(fs_type, flags, dev_name, ^~~~~~~~~~In file included from
include/linux/buffer_head.h:12:0,
fromdrivers/staging/erofs/super.c:14:include/linux/fs.h:2151:23: note: declared here
extern struct dentry *mount_bdev(structfile_system_type*fs_type,^~~~~~~~~~ drivers/staging/erofs/super.c: At top level: drivers/staging/erofs/super.c:518:20: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .mount = erofs_mount, ^~~~~~~~~~~ drivers/staging/erofs/super.c:518:20: note: (near initialization for 'erofs_fs_type.mount') drivers/staging/erofs/super.c: In function 'erofs_remount': drivers/staging/erofs/super.c:630:12: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'? *flags |= MS_RDONLY; ^~~~~~~~~ IS_RDONLY drivers/staging/erofs/super.c: At top level: drivers/staging/erofs/super.c:640:16: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .remount_fs = erofs_remount, ^~~~~~~~~~~~~Caused by various commits creating erofs in the staging tree interacting with various commits redoing the mount infrastructure in the vfs tree.
I have disabed
CONFIG_EROFS_FSfor now:Xiang has submitted several patches as below to fix compiling error on -next tree, could you consider to merge those temporary fixes into -next after merging staging-next's updates, and reenable
CONFIG_EROFS_FSfor further integrity compiling and test?staging: erofs: fix superblock/inode flags (
MS_RDONLY->SB_RDONLY,S_NOATIME)
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000282.html
Quoted 7 lines
Quoted 5 lines
staging: erofs: remove RADIX_TREE_EXCEPTIONAL_{ENTRY, SHIFT}
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000283.htmlstaging: erofs: update .mount and .remount_sb
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000285.htmlWhy have these not been submitted to me for inclusion in my tree?
Oh, let me explain, that is because the compiling error only occurs in -next tree, since -next collects and merges developing patches including common vfs stuff from multi-trees, but those patches didn't cover erofs, such as:
('vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled")
https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git/commit/?h=for-next&id=109b45090d7d3ce2797bb1ef7f70eead5bfe0ff3
("vfs: Require specification of size of mount data for internal mounts")
https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git/commit/?h=for-next&id=0a191e4505a4f255e6513b49426213da69bf0e80
As I checked, above vfs related patches has not been merged in staging tree, if I submit those erofs patches to you and after including them in staging-{test,nexts} tree, it can easily cause compiling error. So I just send them to Stephen first for fixing integrity compiling error.
Then I'd like to ask how to handle this condition to avoid potential conflict in between erofs and vfs changes during merging window. As Stephen suggested, we can disabling CONFIG_EROFS_FS temporarily to pass merge window, and after that we reenable CONFIG_EROFS_FS and apply those fixing patches.
I'd like to ask and make sure, do you agree that we can handle the condition by this way? or do you have any suggestion about solving this issue?
Thanks,
Quoted 7 lines
thanks,
greg k-h
.
Quoted 92 lines · Chao Yu
Hi Greg,
Quoted 67 lines · Greg KH
Quoted 66 lines · Chao Yu
Hi Stephen,
Quoted 54 lines · Gao Xiang
Hi Stephen,
Quoted 51 lines · Stephen Rothwell
Hi Greg,
After merging the staging tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/staging/erofs/super.c: In function 'erofs_read_super':drivers/staging/erofs/super.c:343:17: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'?sb->s_flags |= MS_RDONLY | MS_NOATIME; ^~~~~~~~~ IS_RDONLY drivers/staging/erofs/super.c:343:17: note: each undeclared identifier is reported only once for each function it appears in drivers/staging/erofs/super.c:343:29: error: 'MS_NOATIME' undeclared (first use in this function); did you mean 'S_NOATIME'? sb->s_flags |= MS_RDONLY | MS_NOATIME; ^~~~~~~~~~ S_NOATIME drivers/staging/erofs/super.c: In function 'erofs_mount': drivers/staging/erofs/super.c:501:10: warning: passing argument 5 of 'mount_bdev' makes integer from pointer without a cast [-Wint-conversion] &priv, erofs_fill_super); ^~~~~~~~~~~~~~~~In file included from
include/linux/buffer_head.h:12:0,
fromdrivers/staging/erofs/super.c:14:include/linux/fs.h:2151:23: note: expected 'size_t{aka long unsigned int}' but argument is of type 'int (*)(structsuper_block*, void *, int)'
extern struct dentry *mount_bdev(structfile_system_type*fs_type,^~~~~~~~~~ drivers/staging/erofs/super.c:500:9: error: too few arguments to function 'mount_bdev' return mount_bdev(fs_type, flags, dev_name, ^~~~~~~~~~In file included from
include/linux/buffer_head.h:12:0,
fromdrivers/staging/erofs/super.c:14:include/linux/fs.h:2151:23: note: declared here
extern struct dentry *mount_bdev(structfile_system_type*fs_type,^~~~~~~~~~ drivers/staging/erofs/super.c: At top level: drivers/staging/erofs/super.c:518:20: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .mount = erofs_mount, ^~~~~~~~~~~ drivers/staging/erofs/super.c:518:20: note: (near initialization for 'erofs_fs_type.mount') drivers/staging/erofs/super.c: In function 'erofs_remount': drivers/staging/erofs/super.c:630:12: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'? *flags |= MS_RDONLY; ^~~~~~~~~ IS_RDONLY drivers/staging/erofs/super.c: At top level: drivers/staging/erofs/super.c:640:16: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .remount_fs = erofs_remount, ^~~~~~~~~~~~~Caused by various commits creating erofs in the staging tree interacting with various commits redoing the mount infrastructure in the vfs tree.
I have disabed
CONFIG_EROFS_FSfor now:Xiang has submitted several patches as below to fix compiling error on -next tree, could you consider to merge those temporary fixes into -next after merging staging-next's updates, and reenable
CONFIG_EROFS_FSfor further integrity compiling and test?staging: erofs: fix superblock/inode flags (
MS_RDONLY->SB_RDONLY,S_NOATIME)
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000282.htmlQuoted 7 lines
Quoted 5 lines
staging: erofs: remove RADIX_TREE_EXCEPTIONAL_{ENTRY, SHIFT}
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000283.htmlstaging: erofs: update .mount and .remount_sb
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000285.htmlWhy have these not been submitted to me for inclusion in my tree?
Oh, let me explain, that is because the compiling error only occurs in -next tree, since -next collects and merges developing patches including common vfs stuff from multi-trees, but those patches didn't cover erofs, such as:
('vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled")
https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git/commit/?h=for-next&id=109b45090d7d3ce2797bb1ef7f70eead5bfe0ff3("vfs: Require specification of size of mount data for internal mounts")
https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git/commit/?h=for-next&id=0a191e4505a4f255e6513b49426213da69bf0e80As I checked, above vfs related patches has not been merged in staging tree, if I submit those erofs patches to you and after including them in staging-{test,nexts} tree, it can easily cause compiling error. So I just send them to Stephen first for fixing integrity compiling error.
Quoted 4 lines
Then I'd like to ask how to handle this condition to avoid potential conflict in between erofs and vfs changes during merging window. As Stephen suggested, we can disabling
CONFIG_EROFS_FStemporarily to pass merge window, and after that we reenableCONFIG_EROFS_FSand apply those fixing patches.
Ok, doing that will work.
Quoted 2 lines
I'd like to ask and make sure, do you agree that we can handle the condition by this way? or do you have any suggestion about solving this issue?
This is a side affect of being in the staging tree only at this point in time. It will get easier once things get merged correctly.
thanks,
greg k-h
Quoted 98 lines · Greg KH
Quoted 92 lines · Chao Yu
Hi Greg,
Quoted 67 lines · Greg KH
Quoted 66 lines · Chao Yu
Hi Stephen,
Quoted 54 lines · Gao Xiang
Hi Stephen,
Quoted 51 lines · Stephen Rothwell
Hi Greg,
After merging the staging tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/staging/erofs/super.c: In function 'erofs_read_super':drivers/staging/erofs/super.c:343:17: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'?sb->s_flags |= MS_RDONLY | MS_NOATIME; ^~~~~~~~~ IS_RDONLY drivers/staging/erofs/super.c:343:17: note: each undeclared identifier is reported only once for each function it appears in drivers/staging/erofs/super.c:343:29: error: 'MS_NOATIME' undeclared (first use in this function); did you mean 'S_NOATIME'? sb->s_flags |= MS_RDONLY | MS_NOATIME; ^~~~~~~~~~ S_NOATIME drivers/staging/erofs/super.c: In function 'erofs_mount': drivers/staging/erofs/super.c:501:10: warning: passing argument 5 of 'mount_bdev' makes integer from pointer without a cast [-Wint-conversion] &priv, erofs_fill_super); ^~~~~~~~~~~~~~~~In file included from
include/linux/buffer_head.h:12:0,
fromdrivers/staging/erofs/super.c:14:include/linux/fs.h:2151:23: note: expected 'size_t{aka long unsigned int}' but argument is of type 'int (*)(structsuper_block*, void *, int)'
extern struct dentry *mount_bdev(structfile_system_type*fs_type,^~~~~~~~~~ drivers/staging/erofs/super.c:500:9: error: too few arguments to function 'mount_bdev' return mount_bdev(fs_type, flags, dev_name, ^~~~~~~~~~In file included from
include/linux/buffer_head.h:12:0,
fromdrivers/staging/erofs/super.c:14:include/linux/fs.h:2151:23: note: declared here
extern struct dentry *mount_bdev(structfile_system_type*fs_type,^~~~~~~~~~ drivers/staging/erofs/super.c: At top level: drivers/staging/erofs/super.c:518:20: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .mount = erofs_mount, ^~~~~~~~~~~ drivers/staging/erofs/super.c:518:20: note: (near initialization for 'erofs_fs_type.mount') drivers/staging/erofs/super.c: In function 'erofs_remount': drivers/staging/erofs/super.c:630:12: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'? *flags |= MS_RDONLY; ^~~~~~~~~ IS_RDONLY drivers/staging/erofs/super.c: At top level: drivers/staging/erofs/super.c:640:16: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .remount_fs = erofs_remount, ^~~~~~~~~~~~~Caused by various commits creating erofs in the staging tree interacting with various commits redoing the mount infrastructure in the vfs tree.
I have disabed
CONFIG_EROFS_FSfor now:Xiang has submitted several patches as below to fix compiling error on -next tree, could you consider to merge those temporary fixes into -next after merging staging-next's updates, and reenable
CONFIG_EROFS_FSfor further integrity compiling and test?staging: erofs: fix superblock/inode flags (
MS_RDONLY->SB_RDONLY,S_NOATIME)
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000282.htmlQuoted 7 lines
Quoted 5 lines
staging: erofs: remove RADIX_TREE_EXCEPTIONAL_{ENTRY, SHIFT}
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000283.htmlstaging: erofs: update .mount and .remount_sb
https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000285.htmlWhy have these not been submitted to me for inclusion in my tree?
Oh, let me explain, that is because the compiling error only occurs in -next tree, since -next collects and merges developing patches including common vfs stuff from multi-trees, but those patches didn't cover erofs, such as:
('vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled")
https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git/commit/?h=for-next&id=109b45090d7d3ce2797bb1ef7f70eead5bfe0ff3("vfs: Require specification of size of mount data for internal mounts")
https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git/commit/?h=for-next&id=0a191e4505a4f255e6513b49426213da69bf0e80As I checked, above vfs related patches has not been merged in staging tree, if I submit those erofs patches to you and after including them in staging-{test,nexts} tree, it can easily cause compiling error. So I just send them to Stephen first for fixing integrity compiling error.
Quoted 4 lines
Then I'd like to ask how to handle this condition to avoid potential conflict in between erofs and vfs changes during merging window. As Stephen suggested, we can disabling
CONFIG_EROFS_FStemporarily to pass merge window, and after that we reenableCONFIG_EROFS_FSand apply those fixing patches.
Quoted 7 lines
Ok, doing that will work.
Quoted 2 lines
I'd like to ask and make sure, do you agree that we can handle the condition by this way? or do you have any suggestion about solving this issue?
This is a side affect of being in the staging tree only at this point in time. It will get easier once things get merged correctly.
Yeah, that's correct, so let me send one patch to disable CONFIG_EROFS_FS temporarily. :)
Thanks,
Quoted 7 lines
thanks,
greg k-h
.