[RFC PATCH goldwynr] btrfs: btrfs_buffered_read_iomap_ops can be static
From: kernel test robot
Date: Thu Dec 30 2021 - 02:50:52 EST
fs/btrfs/inode.c:8440:24: warning: symbol 'btrfs_buffered_read_iomap_ops' was not declared. Should it be static?
Fixes: 3f7d55b62cad ("btrfs: iomap_begin() for buffered read")
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: kernel test robot <lkp@xxxxxxxxx>
---
inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index b50cf3192fa9e..ca8df86d42002 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -8437,7 +8437,7 @@ static int btrfs_read_iomap_end(struct inode *inode, loff_t pos,
return 0;
}
-const struct iomap_ops btrfs_buffered_read_iomap_ops = {
+static const struct iomap_ops btrfs_buffered_read_iomap_ops = {
.iomap_begin = btrfs_read_iomap_begin,
.iomap_end = btrfs_read_iomap_end,
};