Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2825089pxk; Sun, 20 Sep 2020 19:28:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5R20g4ZrvkXDrkvdkvU4Fyhv7TKnAR+T2PaNt/SR539ZSBsA0jhIrpKI6QaZ5g0mEUybz X-Received: by 2002:a50:8fa3:: with SMTP id y32mr5474663edy.78.1600655303261; Sun, 20 Sep 2020 19:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600655303; cv=none; d=google.com; s=arc-20160816; b=kIY5N5NTkKsOOY4WkWJpZGpiHvmm/lQupfrFsRowB0G91yFvyX9rCZTuxturGUCTmu KWLriWnygPLmt2HiM5VduG6Mq/QWkHb6dI8NEkQFw64CV4trFOBOzd1LVu7gUjxnsBoh hb97neI2pRpYudIkipC4jHW1iMPdHKdoYSPyJ7ukjwiHVdBP7FdQbK9hKmFKDmcUhRxJ /mXkfi/IuHxfWVLTJe8FOrww9eifE0v7l2T8Jtugu/K4IXl8dYvwNBskxD56QOe8nudV FjntBOIcXhI4F5USo65GJH3TGXesDAK9UJbC7d2Z64pALfPJlhF/d3hVEV+Tg5NvGj/E 2Ftg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lFSktLUg4vlJvFR6j+da57CRrfVvfFDzsNGXcJskpWg=; b=khG3ZbqG1m+6/JsClv3Dg4Rs0MX+PWSnocIeBljC4twW9bRz7Ceme3QsVS00j+RLVj zNo3wg1LZEoiUP9p20uiv0krh90H7BIbdCEP3uO+CzyNXK36a0kPmf5cWaMTsnoRpasx 8DJwGfvF4QLo3zGOoY0oVy0ng9rFd6dqEyX2kFqtgdgReWh7e82g3HBs+y1LC4fQ7Ehl 9OpRwthOcRLDzY9LuR88H9cIIfaAgvVX5H0soKDs85DOUjzX0qZy7jYgXFIS4uK7s4vr 5VRImoXBGrdLYDOqayAeT/ZO/8+o95AFY7VYryVfWzm8JAYKNZ1tDZ33Kmjck3fqro2j tBbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WijXhVtH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e6si7103373ejc.703.2020.09.20.19.27.59; Sun, 20 Sep 2020 19:28:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WijXhVtH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726297AbgIUCZz (ORCPT + 99 others); Sun, 20 Sep 2020 22:25:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726104AbgIUCZy (ORCPT ); Sun, 20 Sep 2020 22:25:54 -0400 Received: from mail-qv1-xf41.google.com (mail-qv1-xf41.google.com [IPv6:2607:f8b0:4864:20::f41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D816EC061755 for ; Sun, 20 Sep 2020 19:25:53 -0700 (PDT) Received: by mail-qv1-xf41.google.com with SMTP id p15so6539559qvk.5 for ; Sun, 20 Sep 2020 19:25:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=lFSktLUg4vlJvFR6j+da57CRrfVvfFDzsNGXcJskpWg=; b=WijXhVtHinjwUial10pwIzB6tFdj9f7sYNeCvlh7wyq3AT2G2FbkKm5BieT99Q56Wd VYRcXPC1N91NugEuLTa6orlyl6dmthJJa9WtSs5RJDe/31LNgPXVPQRmiu52d+HPXdqV RONcqR38ovOMJ9pqh4hv4s5YjWVlv2Xl3x3hfPuJzkqcxrA+JPR3TeL+FbbzG2Kz7Wog nIC/Iy9R8gaWyINgl8SEn3hy23QYrK8UTz4CmdkY+sXZs/xeEsP8AHXnResdLuW/R69X M2l7U01gK4o2hW57vddMS4qdm4WPOYneDsJvwCmID1/4P00fAqnCRrped7wtIbjkAR8l BEnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=lFSktLUg4vlJvFR6j+da57CRrfVvfFDzsNGXcJskpWg=; b=WU+uy1aRDgz6H2zPbUHLb4T5Bs3BJmN2bzyoh631kL/UK+f8pGinBtOBJAvRWfLL9D pNyawD3g7U6PHnTp9B4B0+rF5WhVat/MaQ1y4kkRIxjVXjdvznTVQcrj8Q1MzMpV8ALk g9QPX+OHVQUatqxOVf5yOLNU+Yc/t8F+RAaY3HRBgZbNyHKjnP4oN8siBy7VLnhMC+yt WHcBaQuMiZKYwdtCZW+uVTUIM/yqSnrjSlhp/2uvH1NR0QI/BIFQ0JQAbzgxi5P0PVQP C8/nEry5X/8TkfWNU4+71Xn20PqQJbe5+6oZ0OWlUQPgQScc5A8SFpiL1lEzclwjSRDa FoLg== X-Gm-Message-State: AOAM530t9xzMLXmdidgxYLIPyk0Sce0hSTX4FA6HpZE7eLYcje7XBqb9 NTEyNgXxqJG/JvzNAxZAMfA= X-Received: by 2002:a0c:e788:: with SMTP id x8mr41799676qvn.27.1600655152779; Sun, 20 Sep 2020 19:25:52 -0700 (PDT) Received: from arch-chirva.localdomain (pool-68-133-6-220.bflony.fios.verizon.net. [68.133.6.220]) by smtp.gmail.com with ESMTPSA id w44sm9044859qth.9.2020.09.20.19.25.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Sep 2020 19:25:52 -0700 (PDT) Date: Sun, 20 Sep 2020 22:25:50 -0400 From: Stuart Little To: Dan Williams , Vishal Verma , Dave Jiang , linux-nvdimm@lists.01.org Cc: kernel list Subject: Re: PROBLEM: 5.9.0-rc6 fails =?utf-8?Q?to_?= =?utf-8?Q?compile_due_to_'redefinition_of_=E2=80=98dax=5Fsupported?= =?utf-8?B?4oCZJw==?= Message-ID: <20200921022550.GE3027080@arch-chirva.localdomain> References: <20200921010359.GO3027113@arch-chirva.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200921010359.GO3027113@arch-chirva.localdomain> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org An update on this: I've done a bisect, with the following result. --- cut here --- e2ec5128254518cae320d5dc631b71b94160f663 is the first bad commit commit e2ec5128254518cae320d5dc631b71b94160f663 Author: Jan Kara Date: Sun Sep 20 08:54:42 2020 -0700 dm: Call proper helper to determine dax support DM was calling generic_fsdax_supported() to determine whether a device referenced in the DM table supports DAX. However this is a helper for "leaf" device drivers so that they don't have to duplicate common generic checks. High level code should call dax_supported() helper which that calls into appropriate helper for the particular device. This problem manifested itself as kernel messages: dm-3: error: dax access failed (-95) when lvm2-testsuite run in cases where a DM device was stacked on top of another DM device. Fixes: 7bf7eac8d648 ("dax: Arrange for dax_supported check to span multiple devices") Cc: Tested-by: Adrian Huang Signed-off-by: Jan Kara Acked-by: Mike Snitzer Reported-by: kernel test robot Link: https://lore.kernel.org/r/160061715195.13131.5503173247632041975.stgit@dwillia2-desk3.amr.corp.intel.com Signed-off-by: Dan Williams drivers/dax/super.c | 4 ++++ drivers/md/dm-table.c | 10 +++++++--- include/linux/dax.h | 22 ++++++++++++++++++++-- 3 files changed, 31 insertions(+), 5 deletions(-) --- end --- On Sun, Sep 20, 2020 at 09:03:59PM -0400, Stuart Little wrote: > I am trying to compile for an x86_64 machine (Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz). The config file I am currently using is at > > https://termbin.com/xin7 > > The build for 5.9.0-rc6 fails with the following errors: > > --- cut here --- > > drivers/dax/super.c:325:6: error: redefinition of ‘dax_supported’ > 325 | bool dax_supported(struct dax_device *dax_dev, struct block_device *bdev, > | ^~~~~~~~~~~~~ > In file included from drivers/dax/super.c:16: > ./include/linux/dax.h:162:20: note: previous definition of ‘dax_supported’ was here > 162 | static inline bool dax_supported(struct dax_device *dax_dev, > | ^~~~~~~~~~~~~ > CC lib/memregion.o > CC [M] drivers/gpu/drm/drm_gem_vram_helper.o > make[2]: *** [scripts/Makefile.build:283: drivers/dax/super.o] Error 1 > make[1]: *** [scripts/Makefile.build:500: drivers/dax] Error 2 > make[1]: *** Waiting for unfinished jobs.... > > --- end --- > > That's earlier on, and then later, at the end of the (failed) build: > > make: *** [Makefile:1784: drivers] Error 2 > > The full build log is at > > https://termbin.com/ihxj > > but I do not see anything else amiss. 5.9.0-rc5 built fine last week.