From patchwork Sat Sep 17 23:10:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Domagoj Trsan X-Patchwork-Id: 9337419 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0E1866089F for ; Sat, 17 Sep 2016 23:10:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E374528F7F for ; Sat, 17 Sep 2016 23:10:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D3B642902F; Sat, 17 Sep 2016 23:10:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7637F2902F for ; Sat, 17 Sep 2016 23:10:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932322AbcIQXKo (ORCPT ); Sat, 17 Sep 2016 19:10:44 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36006 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932209AbcIQXKl (ORCPT ); Sat, 17 Sep 2016 19:10:41 -0400 Received: by mail-wm0-f65.google.com with SMTP id b184so9127113wma.3 for ; Sat, 17 Sep 2016 16:10:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KrLqXdbx7V2qhzvVs5SznUliuYwRxX9QABt6/7TeBfI=; b=FIOxd9SI1Y02kc95teqRnvFs+s9lin3eERocZI3UNwZjlxd9d/7pAImY5IQWgnBWCL +guzvL7ajH9DkKN+YF9VVAwx/DEgdio+8H31gcv9SfeOKQRqll31xsfnPJJSzYAnAyGo lwrLPt5XcGWZzIKkhEWPYjEU7ZNbpuOH232iMhh6CPJYa0WvMcGnKfOe2mDKhCxB4nON 9Fh7irYLm8WQ8E9fLDw0fLHMoe1HveP8RpMfbFWjWzCVm7/bVP1KqzfEkrgcCYqq3bG/ 54AFYUFN9J8kLU+CZQmDNESzDvV76KESyhAve+Ah4L/PXCojTIUdm0rCRqf3+TwwTxp7 IvHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KrLqXdbx7V2qhzvVs5SznUliuYwRxX9QABt6/7TeBfI=; b=mweIDTUTAevbVujVbAuYOesB5vBI/iAEnadc1lvTOncEWJ+MbrEUx3MoKFODxG8Ooe VTL+rpycB2Mc+jNr3hL2Jk5DFgTSN625MqXjP3L6zU3ajSdIzcvBCWQW9JZLZXEoEIvI 7szIgLpsfj3XByQ6/tEYcNZT/jVZ0HW3qlnsk5YuIemsMfm29gWaNPdlhFWq620btIi8 XdpgKM6/64ape/2Dqv4k9+qmMD/UP+RzmhA5Yu6QRkyXwbkaGK9By4E9GtPeZ/auHoWQ swmXP7YeBlIXfYesJPoDeKU2wTCmtzGB2gI+puJ8lBGSZljpexUC4GIBFmIqVVViN9uJ Lr4A== X-Gm-Message-State: AE9vXwMOb5xcBT8VU8Wm5b0hmVnMzl/+zob4jWe06n3PFx++gdnTEzWj7C+C+iK2oQxcQQ== X-Received: by 10.194.17.6 with SMTP id k6mr20815810wjd.65.1474153839787; Sat, 17 Sep 2016 16:10:39 -0700 (PDT) Received: from localhost.localdomain ([2a02:8084:d300:3c80:e94d:6d66:b35f:4dbe]) by smtp.gmail.com with ESMTPSA id r9sm15209947wjp.15.2016.09.17.16.10.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 17 Sep 2016 16:10:39 -0700 (PDT) From: =?UTF-8?q?Domagoj=20Tr=C5=A1an?= To: linux-btrfs@vger.kernel.org Cc: clm@fb.com, jbacik@fb.com, dsterba@suse.com, =?UTF-8?q?Domagoj=20Tr=C5=A1an?= Subject: [PATCH] btrfs: change btrfs_csum_final result param type to u8 Date: Sun, 18 Sep 2016 00:10:35 +0100 Message-Id: <1474153835-6728-2-git-send-email-domagoj.trsan@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474153835-6728-1-git-send-email-domagoj.trsan@gmail.com> References: <1474153835-6728-1-git-send-email-domagoj.trsan@gmail.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP --- fs/btrfs/disk-io.c | 2 +- fs/btrfs/disk-io.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 50bed6c..95bd34f 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -273,7 +273,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); } diff --git a/fs/btrfs/disk-io.h b/fs/btrfs/disk-io.h index 8e79d00..e849845 100644 --- a/fs/btrfs/disk-io.h +++ b/fs/btrfs/disk-io.h @@ -118,7 +118,7 @@ int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid, int atomic); int btrfs_read_buffer(struct extent_buffer *buf, u64 parent_transid); u32 btrfs_csum_data(char *data, u32 seed, size_t len); -void btrfs_csum_final(u32 crc, char *result); +void btrfs_csum_final(u32 crc, u8 *result); int btrfs_bio_wq_end_io(struct btrfs_fs_info *info, struct bio *bio, enum btrfs_wq_endio_type metadata); int btrfs_wq_submit_bio(struct btrfs_fs_info *fs_info, struct inode *inode,