Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2363542ybi; Thu, 4 Jul 2019 09:35:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIw2mfpbzu0lH+6RPCcxebZ5VbNx/EtoUhVwKCRPlrRG8/KOubM3S3jSEJafMV/4dCKh4J X-Received: by 2002:a17:902:b191:: with SMTP id s17mr45465648plr.266.1562258121528; Thu, 04 Jul 2019 09:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562258121; cv=none; d=google.com; s=arc-20160816; b=QTpBHwROHTZF2tZ7CbSgpr7VAhK2DOD9UEbTnsOKU8lPFMTIfpP3uKlioMBezz49zn kh9nrQZ9sL+oi1K+jK0+JIlPxfVodFNrd4t/lHVGEehR+v8zY+CfhAbM3VShohidlcOR VyDklkfonPllKdJh27odGNycwcw/quMtHvV6ZUGY0R2BV2HXfJ8p/mbsSTahpb4uwjZu GX1XZBZyDH9Ncj84IEeYkuosPCkXO24gkMndgJffZFKsdSR+o3wAQ+0xJyauawAxcyQV g1rUdgjhVV0VttPvJ2zSbNYtrZFpTJl9epNDShIPVbLS5AAVRmbhrP12Z8LIHq9Jx9Xr DAow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :reply-to:message-id:subject:cc:to:from:date; bh=j1OtYNsZ/IUXNAJv2IgQpVcvKoQmd/ciqhI6kBMrtsM=; b=t4GGjZl5cfUr0OH2RWCFPrr+3vLIswN5OA6a7gJ+8vwx0PK2v285nehI57BkMjsFpJ HdVNNIKuSKXYmXOwn2jz8++3TECnsRgB29UqNwQg2fRhQkhuoHngkFLX69NW5SoMixGx eKoq9pVWgKfaJUybNONRZK3NZTnTAXs2uZRUQmokn5CL5yySTTFQ5dzCeISEycIQmno6 NGAocy0/0qsKyQCoiSapDlDURmJUYngMKkZ/Wvf3/CYhrNFPpf29T2rpqnCGRKZaiczP /mJpM79Kxl3TovhBYHmiXa0gaUC5H+jaZgDR8QuGpRmO0scjw/L1PckLEARkZ/20hd/R O8nQ== 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 r8si5444226pls.372.2019.07.04.09.34.26; Thu, 04 Jul 2019 09:35:21 -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 S1726881AbfGDQTN (ORCPT + 99 others); Thu, 4 Jul 2019 12:19:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:37144 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725882AbfGDQTM (ORCPT ); Thu, 4 Jul 2019 12:19:12 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 6F057AF89; Thu, 4 Jul 2019 16:19:11 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 10402DA89D; Thu, 4 Jul 2019 18:19:50 +0200 (CEST) Date: Thu, 4 Jul 2019 18:19:49 +0200 From: David Sterba To: YueHaibing Cc: clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, jthumshirn@suse.de, linux-kernel@vger.kernel.org, linux-btrfs@vger.kernel.org Subject: Re: [PATCH] btrfs: Fix build error while LIBCRC32C is module Message-ID: <20190704161949.GZ20977@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, YueHaibing , clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, jthumshirn@suse.de, linux-kernel@vger.kernel.org, linux-btrfs@vger.kernel.org References: <20190702143903.49264-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190702143903.49264-1-yuehaibing@huawei.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 02, 2019 at 10:39:03PM +0800, YueHaibing wrote: > 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") Thanks, queued for 5.3. I hoped we could reduce the config dependencies a bit, oh well.