summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven2013-08-20 13:20:12 +0200
committerChris Mason2013-09-01 14:16:13 +0200
commit1473b24ee0cb43d4b48aa0c5f1b8417928910a4d (patch)
tree0f47db30e14eef426ebb06064503af2ec375ebf3 /fs/btrfs/ctree.h
parentBtrfs: Make btrfs_device_uuid() return unsigned long (diff)
downloadkernel-qcow2-linux-1473b24ee0cb43d4b48aa0c5f1b8417928910a4d.tar.gz
kernel-qcow2-linux-1473b24ee0cb43d4b48aa0c5f1b8417928910a4d.tar.xz
kernel-qcow2-linux-1473b24ee0cb43d4b48aa0c5f1b8417928910a4d.zip
Btrfs: Make btrfs_device_fsid() return unsigned long
All callers of btrfs_device_fsid() cast its return type to unsigned long. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index b4e70537cada..b71bc3a99342 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -2169,9 +2169,9 @@ static inline unsigned long btrfs_device_uuid(struct btrfs_dev_item *d)
return (unsigned long)d + offsetof(struct btrfs_dev_item, uuid);
}
-static inline char *btrfs_device_fsid(struct btrfs_dev_item *d)
+static inline unsigned long btrfs_device_fsid(struct btrfs_dev_item *d)
{
- return (char *)d + offsetof(struct btrfs_dev_item, fsid);
+ return (unsigned long)d + offsetof(struct btrfs_dev_item, fsid);
}
BTRFS_SETGET_FUNCS(chunk_length, struct btrfs_chunk, length, 64);