Return-Path: Received: from mx2.suse.de ([195.135.220.15]:52440 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S944476AbcJaQr1 (ORCPT ); Mon, 31 Oct 2016 12:47:27 -0400 Date: Mon, 31 Oct 2016 17:47:24 +0100 From: David Sterba To: Domagoj =?utf-8?B?VHLFoWFu?= Cc: linux-btrfs@vger.kernel.org, clm@fb.com, jbacik@fb.com, dsterba@suse.com Subject: Re: [PATCH v3] btrfs: change btrfs_csum_final result param type to u8 Message-ID: <20161031164724.GR12522@twin.jikos.cz> Reply-To: dsterba@suse.cz References: <20161027075233.4050-1-domagoj.trsan@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <20161027075233.4050-1-domagoj.trsan@gmail.com> Sender: linux-btrfs-owner@vger.kernel.org List-ID: On Thu, Oct 27, 2016 at 08:52:33AM +0100, Domagoj Tršan wrote: > 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); Sorry, I've noticed it just now, several callers of btrfs_csum_final cast the 2nd argument to (char *), which gets change to u8. Can you please fix the callers? Thanks.