From: "Domagoj Tršan" <domagoj.trsan@gmail.com>
To: linux-btrfs@vger.kernel.org
Cc: clm@fb.com, jbacik@fb.com, dsterba@suse.com,
"Domagoj Tršan" <domagoj.trsan@gmail.com>
Subject: [PATCH] btrfs-progs: change btrfs_csum_final result param type to u8
Date: Sun, 18 Sep 2016 00:10:22 +0100 [thread overview]
Message-ID: <1474153823-6671-1-git-send-email-domagoj.trsan@gmail.com> (raw)
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);
Also, I changed definitions of various csum variables to be consistent with
kernel code. In kernel code they are defined as u8 result[BTRFS_CSUM_SIZE] but
here was as char result[BTRFS_CSUM_SIZE].
Domagoj Tršan (1):
btrfs-progs: change btrfs_csum_final result param type to u8
btrfs-image.c | 2 +-
chunk-recover.c | 2 +-
cmds-check.c | 2 +-
cmds-inspect-dump-super.c | 2 +-
disk-io.c | 10 +++++-----
disk-io.h | 2 +-
file-item.c | 2 +-
free-space-cache.c | 2 +-
super-recover.c | 2 +-
utils.c | 2 +-
10 files changed, 14 insertions(+), 14 deletions(-)
--
2.7.4
next reply other threads:[~2016-09-17 23:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-17 23:10 Domagoj Tršan [this message]
2016-09-17 23:10 ` [PATCH] btrfs-progs: change btrfs_csum_final result param type to u8 Domagoj Tršan
2016-09-19 17:34 ` David Sterba
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1474153823-6671-1-git-send-email-domagoj.trsan@gmail.com \
--to=domagoj.trsan@gmail.com \
--cc=clm@fb.com \
--cc=dsterba@suse.com \
--cc=jbacik@fb.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).