Skip to content

Commit d9c2332

Browse files
Jiapeng Chongaxboe
authored andcommitted
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? Reported-by: Abaci Robot <[email protected]> jpg: Remove closes bugzilla link Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Signed-off-by: John Garry <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Fixes: 8f3a608827d1 ("bdev: open block device as files") Tested-by: John Garry <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent eaa3706 commit d9c2332

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/bdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ static struct file_system_type bd_type = {
385385
};
386386

387387
struct super_block *blockdev_superblock __ro_after_init;
388-
struct vfsmount *blockdev_mnt __ro_after_init;
388+
static struct vfsmount *blockdev_mnt __ro_after_init;
389389
EXPORT_SYMBOL_GPL(blockdev_superblock);
390390

391391
void __init bdev_cache_init(void)

0 commit comments

Comments
 (0)