From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50762C433F5 for ; Tue, 24 May 2022 08:11:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232066AbiEXIL1 (ORCPT ); Tue, 24 May 2022 04:11:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231815AbiEXILQ (ORCPT ); Tue, 24 May 2022 04:11:16 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC5A055B8 for ; Tue, 24 May 2022 01:11:13 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 56FBB68AFE; Tue, 24 May 2022 10:11:10 +0200 (CEST) Date: Tue, 24 May 2022 10:11:10 +0200 From: Christoph Hellwig To: Qu Wenruo Cc: Christoph Hellwig , Chris Mason , Josef Bacik , David Sterba , Qu Wenruo , linux-btrfs@vger.kernel.org, Nikolay Borisov Subject: Re: [PATCH 2/8] btrfs: introduce a pure data checksum checking helper Message-ID: <20220524081110.GA27062@lst.de> References: <20220522114754.173685-1-hch@lst.de> <20220522114754.173685-3-hch@lst.de> <20220524072458.GA26145@lst.de> <6423b926-c5b2-612c-ccac-0cb9ee29984f@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6423b926-c5b2-612c-ccac-0cb9ee29984f@gmx.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Tue, May 24, 2022 at 04:07:41PM +0800, Qu Wenruo wrote: >> - u32 pgoff, u8 *csum, u8 *csum_expected); >> + u32 pgoff, u8 *csum, u8 * const csum_expected); > > Shouldn't it be "const u8 *" instead? No, that would bind to the pointer. But we care about the data.