The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [RFC PATCH goldwynr] btrfs: btrfs_buffered_read_iomap_ops can be static
@ 2021-12-30  7:50 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-30  7:50 UTC (permalink / raw)
  To: Goldwyn Rodrigues; +Cc: kbuild-all, linux-kernel

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@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
 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,
 };

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-30  7:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-30  7:50 [RFC PATCH goldwynr] btrfs: btrfs_buffered_read_iomap_ops can be static kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox