[PATCH] btrfs/file.c: quiet sparse noise

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quiet the sparse noise:

warning: symbol 'btrfs_find_defrag_inode' was not declared. Should it be static?

Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>
Cc: Chris Mason <chris.mason@xxxxxxxxxx>

---

diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index e7872e4..08e2aa0 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -159,8 +159,8 @@ int btrfs_add_inode_defrag(struct btrfs_trans_handle *trans,
 /*
  * must be called with the defrag_inodes lock held
  */
-struct inode_defrag *btrfs_find_defrag_inode(struct btrfs_fs_info *info, u64 ino,
-					     struct rb_node **next)
+static struct inode_defrag *btrfs_find_defrag_inode(struct btrfs_fs_info *info,
+						u64 ino, struct rb_node **next)
 {
 	struct inode_defrag *entry = NULL;
 	struct rb_node *p;
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux