bdev: make blockdev_mnt static
PATCH 1/1 bdev: make blockdev_mnt static
The blockdev_mnt are not used outside the file bdev.c, so the modification is defined as static.
block/bdev.c:377:17: warning: symbol 'blockdev_mnt' was not declared. Should it be static?
--- block/bdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
block/bdev.c +1 -1
@@ -374,7 +374,7 @@ static struct file_system_type bd_type = { };struct super_block *blockdev_superblock__ro_after_init ; -struct vfsmount *blockdev_mnt__ro_after_init ; +static struct vfsmount *blockdev_mnt__ro_after_init ;EXPORT_SYMBOL_GPL (blockdev_superblock);void __init bdev_cache_init (void )
Signature · 1 line
2.20.1.7.g153144c
Quoted 5 lines · Jiapeng Chong
The
blockdev_mntare not used outside the filebdev.c, so the modification is defined as static.
block/bdev.c:377:17: warning: symbol 'blockdev_mnt' was not declared. Should it be static?
The patch looks good:
Quoted 2 lines
But I don't think kernel commit should close random bugzillas?
Jens Axboe
maintainerQuoted 4 lines · Jiapeng Chong
The
blockdev_mntare not used outside the filebdev.c, so the modification is defined as static.
block/bdev.c:377:17: warning: symbol 'blockdev_mnt' was not declared. Should it be static?
What is this against?
Signature · 1 line
Jens Axboe
John Garry
Tested-by+
Quoted 8 lines · Jens Axboe
Quoted 4 lines · Jiapeng Chong
The
blockdev_mntare not used outside the filebdev.c, so the modification is defined as static.
block/bdev.c:377:17: warning: symbol 'blockdev_mnt' was not declared. Should it be static?What is this against?
Please note I see this issue on your 6.9 block branch today @
fd379c13fc0 (HEAD, block/block-6.9) block: set default max segment size in case of virt_boundary
And I think that it fixes 8f3a608827d1, so