aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiapeng Chong <[email protected]>2024-06-14 09:03:43 +0000
committerJens Axboe <[email protected]>2024-06-16 15:29:55 -0600
commitd9c2332199d073c5edd7163d64fbdee6224d8c08 (patch)
treede21bc269fb012a6bed3b3287f752e4fb77c86d1
parenteaa3706fedc6a4142c251b2d4005d850caeabe50 (diff)
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]>
-rw-r--r--block/bdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bdev.c b/block/bdev.c
index 353677ac49b3..ced4ac990ec8 100644
--- a/block/bdev.c
+++ b/block/bdev.c
@@ -385,7 +385,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)