diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-08-20 11:20:11 (GMT) |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-09-01 12:16:12 (GMT) |
commit | 410ba3a291081d98f0e58a868e1305110d986903 (patch) | |
tree | 66575d6c7ffa9b61ed3ecaa5f5c70daef1cbbeb1 /fs/btrfs/ctree.h | |
parent | 118a0a251425b5ed5d5951097f9ef95f30611b03 (diff) | |
download | linux-fsl-qoriq-410ba3a291081d98f0e58a868e1305110d986903.tar.xz |
Btrfs: Make btrfs_device_uuid() return unsigned long
All callers of btrfs_device_uuid() 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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 7add85a..b4e7053 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -2164,9 +2164,9 @@ BTRFS_SETGET_STACK_FUNCS(stack_device_bandwidth, struct btrfs_dev_item, BTRFS_SETGET_STACK_FUNCS(stack_device_generation, struct btrfs_dev_item, generation, 64); -static inline char *btrfs_device_uuid(struct btrfs_dev_item *d) +static inline unsigned long btrfs_device_uuid(struct btrfs_dev_item *d) { - return (char *)d + offsetof(struct btrfs_dev_item, uuid); + return (unsigned long)d + offsetof(struct btrfs_dev_item, uuid); } static inline char *btrfs_device_fsid(struct btrfs_dev_item *d) |