Re: linux-next: build failure after merge of the vfs-brauner tree

From: Kent Overstreet
Date: Sun Feb 11 2024 - 19:36:52 EST


On Mon, Feb 12, 2024 at 10:52:37AM +1100, Stephen Rothwell wrote:
> Hi all,
>
> After merging the vfs-brauner tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> In file included from include/linux/highmem.h:5,
> from include/linux/bvec.h:10,
> from include/linux/blk_types.h:10,
> from include/linux/blkdev.h:9,
> from fs/btrfs/super.c:6:
> include/linux/fs.h: In function 'super_set_sysfs_name_generic':
> include/linux/fs.h:2597:9: error: function 'super_set_sysfs_name_generic' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
> 2597 | vsnprintf(sb->s_sysfs_name, sizeof(sb->s_sysfs_name), fmt, args);
> | ^~~~~~~~~
> cc1: all warnings being treated as errors
>
> and many more similar.
>
> Caused by commit
>
> eeea5d25d4a7 ("fs: add FS_IOC_GETFSSYSFSPATH")
>
> This new finction is not used anywhere, so just remove it for now?

Let's not drop it; people adding support for other filesystems will
probably want it. Here's a fixup patch:

-- >8 --