summaryrefslogtreecommitdiff
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorDomagoj Tršan <domagoj.trsan@gmail.com>2016-10-27 08:52:33 +0100
committerDavid Sterba <dsterba@suse.com>2016-11-30 13:45:18 +0100
commit0b5e3dafb60229dd7225e81023af5d2ddfb6a4b7 (patch)
tree91f93d3c295a6528cd027cba93bebd2d99e8273b /fs/btrfs/disk-io.c
parenta23eaa875f0f1d89eb866b8c9860e78273ff5daf (diff)
downloadlwn-0b5e3dafb60229dd7225e81023af5d2ddfb6a4b7.tar.gz
lwn-0b5e3dafb60229dd7225e81023af5d2ddfb6a4b7.zip
btrfs: change btrfs_csum_final result param type to u8
csum member of struct btrfs_super_block has array type of u8. It makes sense that function btrfs_csum_final should be also declared to accept u8 *. I changed the declaration of method void btrfs_csum_final(u32 crc, char *result); to void btrfs_csum_final(u32 crc, u8 *result); Signed-off-by: Domagoj Tršan <domagoj.trsan@gmail.com> [ changed cast to u8 at several call sites ] Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 5d1da78f044b..8677d29efade 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -271,7 +271,7 @@ u32 btrfs_csum_data(char *data, u32 seed, size_t len)
return btrfs_crc32c(seed, data, len);
}
-void btrfs_csum_final(u32 crc, char *result)
+void btrfs_csum_final(u32 crc, u8 *result)
{
put_unaligned_le32(~crc, result);
}