]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Btrfs: fix a compiling warning
authorLiu Bo <bo.li.liu@oracle.com>
Tue, 18 Sep 2012 14:27:45 +0000 (08:27 -0600)
committerChris Mason <chris.mason@fusionio.com>
Thu, 4 Oct 2012 13:40:02 +0000 (09:40 -0400)
commit4bc5c6c57ccd58b361c8e0f618e83ed3965ae5e7
tree87dbdde0096af8fc91da1f7ce009b4aa7d8d6c20
parent395eff3dadec91f14ab38aa65b800456af9311a4
Btrfs: fix a compiling warning

NOTE:
This is against btrfs-next git repo.

fs/btrfs/inode.c: In function ‘relink_extent_backref’:
fs/btrfs/inode.c:2185:6: warning: passing argument 2 of
‘btrfs_drop_extents’ from incompatible pointer type [enabled by default]
fs/btrfs/ctree.h:3340:5: note: expected ‘struct btrfs_root *’ but argument is of type ‘struct inode *’
fs/btrfs/inode.c:2185:6: warning: passing argument 3 of ‘btrfs_drop_extents’ makes pointer from integer without a cast [enabled by default]
fs/btrfs/ctree.h:3340:5: note: expected ‘struct inode *’ but argument is of type ‘u64’
fs/btrfs/inode.c:2185:6: warning: passing argument 5 of ‘btrfs_drop_extents’ makes integer from pointer without a cast [enabled by default]
fs/btrfs/ctree.h:3340:5: note: expected ‘u64’ but argument is of type ‘u64 *’

We didn't update the related functions after someone changed the API.

This fixes it.

Reported-by: <fengguang.wu@intel.com>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
fs/btrfs/inode.c