diff options
author | Domagoj Tršan <domagoj.trsan@gmail.com> | 2016-10-27 08:52:33 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-30 13:45:18 +0100 |
commit | 0b5e3dafb60229dd7225e81023af5d2ddfb6a4b7 (patch) | |
tree | 91f93d3c295a6528cd027cba93bebd2d99e8273b /fs/btrfs/compression.c | |
parent | a23eaa875f0f1d89eb866b8c9860e78273ff5daf (diff) | |
download | linux-0b5e3dafb60229dd7225e81023af5d2ddfb6a4b7.tar.gz linux-0b5e3dafb60229dd7225e81023af5d2ddfb6a4b7.tar.bz2 linux-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/compression.c')
-rw-r--r-- | fs/btrfs/compression.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index d4d8b7e36b2f..49108036dd4c 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -120,7 +120,7 @@ static int check_compressed_csum(struct inode *inode, kaddr = kmap_atomic(page); csum = btrfs_csum_data(kaddr, csum, PAGE_SIZE); - btrfs_csum_final(csum, (char *)&csum); + btrfs_csum_final(csum, (u8 *)&csum); kunmap_atomic(kaddr); if (csum != *cb_sum) { |