Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3440788ybi; Tue, 2 Jul 2019 07:50:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzv5taS0tpMVL+KUuclBjU/5O+I0IeqEGJEVXdHly0N9EpH0Rbksl/3moq7npos2pGUgLst X-Received: by 2002:a17:902:722:: with SMTP id 31mr35162224pli.163.1562079048373; Tue, 02 Jul 2019 07:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562079048; cv=none; d=google.com; s=arc-20160816; b=EwSsSueZBCHfunpJW9mmFXx7pyCca6uaE8vbvU6R0EYqafuXTouCfkGoHc/AjWewVt 3tPVf18x7JOfET2bnLpZwLD8hujjeyPL2k3523CYDx0vyTas3UJNVHaptfw2YRhCGeOS MtLqI5ippCjnoqgh/8p2k/S3tSarQfm4ual5aRgWUuat3MkRifgiHzqlLD72ll9PQtiA QjFe/0uSMv6QXneNdB8OZSi7x2clCfqi2V3xeSlg4dd7UpxCknlVYfPTt5umu2WchWjE 96m3Sqs8gouMsESs6rYCyvWXOtXFYii8eSPUhm06JROYW7777oIrc6CWZO/dF0pycXtT ovEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=4KkmG3NKO+hwsvvS6McE47FDBQDHqrAxTjNlrfYucZc=; b=GFoS9+5G08ktFF3DKukCfXk7U7/xjlCe8rq37UrKTDEfzznpec6Gx8M1YPDSEdQAAo 9VREVcg7mWG6qLc89ToUipqaDZb3wtukmvkDD1jQ3DLcLtS3v8zIUOzsxkg22GyPAUWl sr5UWDiV1aGdmztaKJ7uTyMtXvrCaCwJ27crqGHCWWhlj2YHYOoIKKQ+OYZwNdR93W8n YbfgFgzClAqJQaG2/5XWer7+RgptmIpwy7tUmGJv4WUUhUlWk0n45sORA2hbKLdhNjIs xwXs4TZYHcQq4k2Ui7IxsTDBvX9fChfVVuC9n7NwJmUSXHZBztt36ISXoYx1N5LWjAui aT1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u46si5824235pgn.578.2019.07.02.07.50.33; Tue, 02 Jul 2019 07:50:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726283AbfGBOuK (ORCPT + 99 others); Tue, 2 Jul 2019 10:50:10 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:8686 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726150AbfGBOuJ (ORCPT ); Tue, 2 Jul 2019 10:50:09 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 3358780BBA68DC0EDB0A; Tue, 2 Jul 2019 22:39:17 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Tue, 2 Jul 2019 22:39:07 +0800 From: YueHaibing To: , , , CC: , , YueHaibing Subject: [PATCH] btrfs: Fix build error while LIBCRC32C is module Date: Tue, 2 Jul 2019 22:39:03 +0800 Message-ID: <20190702143903.49264-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If CONFIG_BTRFS_FS is y and CONFIG_LIBCRC32C is m, building fails: fs/btrfs/super.o: In function `btrfs_mount_root': super.c:(.text+0xb7f9): undefined reference to `crc32c_impl' fs/btrfs/super.o: In function `init_btrfs_fs': super.c:(.init.text+0x3465): undefined reference to `crc32c_impl' fs/btrfs/extent-tree.o: In function `hash_extent_data_ref': extent-tree.c:(.text+0xe60): undefined reference to `crc32c' extent-tree.c:(.text+0xe78): undefined reference to `crc32c' extent-tree.c:(.text+0xe8b): undefined reference to `crc32c' fs/btrfs/dir-item.o: In function `btrfs_insert_xattr_item': dir-item.c:(.text+0x291): undefined reference to `crc32c' fs/btrfs/dir-item.o: In function `btrfs_insert_dir_item': dir-item.c:(.text+0x429): undefined reference to `crc32c' Select LIBCRC32C to fix it. Reported-by: Hulk Robot Fixes: d5178578bcd4 ("btrfs: directly call into crypto framework for checksumming") Signed-off-by: YueHaibing --- fs/btrfs/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/btrfs/Kconfig b/fs/btrfs/Kconfig index 2521a24..df4041d 100644 --- a/fs/btrfs/Kconfig +++ b/fs/btrfs/Kconfig @@ -4,6 +4,7 @@ config BTRFS_FS tristate "Btrfs filesystem support" select CRYPTO select CRYPTO_CRC32C + select LIBCRC32C select CRYPTO_SHA256 select ZLIB_INFLATE select ZLIB_DEFLATE -- 2.7.4