Received: by 10.213.65.68 with SMTP id h4csp752831imn; Wed, 4 Apr 2018 06:44:39 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+PiWKYAtzu2IGnnCsNypNKhIiFvYh4vShyETqpIg8PiPOTRrwUZwa8kr7Bd8+VqUMFmv9I X-Received: by 10.101.93.2 with SMTP id e2mr11984577pgr.100.1522849478942; Wed, 04 Apr 2018 06:44:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522849478; cv=none; d=google.com; s=arc-20160816; b=vvSUvfz2UJ+ys0+8gdpzCCiteFegGnVulkfkQlb3oG6F1CbtsnQt7UvgslT2kM9O56 w6ITwKlzciBleURJE/uOIshsScGZIZvctUXuf6IEMSP4KhMabM4eTPqltkhZdUkyJFjz LJM5TDAttnO34M1FnLi66Z1rAdFI5o9Vywoncrzn8N/tgHyAq8ZrlrrXeAc5wCWu3JLZ 5zzXj/Tpbg1Uxj1NqOVlDgQA0EKO6ZsMEqjzWADfsH6KAaqrXKot3XI64y3q+LKDTP50 e8u567GDdu+hXbQZv+JGoFozOwMHRLOnTeFTX+zBlAYjrtIldq7XvLtxMPwrWQ3Sa1T3 KkBA== 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:message-id:subject:cc :to:from:date:arc-authentication-results; bh=fqk1E6GKVhwXaWf7WmtpWbcwlvmWEsff9W6DHr/B/FE=; b=RUPoIdKa91LChPFWvySCX03VOzBneeKofOzWaBpUEr77/Pp5HZlu0+HUw+eAS4HcjV qGAA5pz/baSg/pnckwHG86t7pHgCVdJeBOPcfnjSGA/h0qUCXQtvjApmxYbepjFwaUeo ESOTJARKSPOsLKWBAl12fZK+n9dh0t/DR8Bhim5Br8IeFLhtX61dIXZ/sRaKfOeRNkoR llOLkIlzdChYktMSsyZkioSiaracR2AjYEql49GIvhXTH8Il1KOSoDYaWXpOIDTUo4b4 3ulThUSRQWZxF/T8Shul7JxGIY++OxEHY8vo75o1lnmYickSWtqiir3lZCg7pfDDPqXx zPmw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s15-v6si3529075plj.701.2018.04.04.06.44.22; Wed, 04 Apr 2018 06:44:38 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751239AbeDDNnT (ORCPT + 99 others); Wed, 4 Apr 2018 09:43:19 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:43398 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751117AbeDDNnS (ORCPT ); Wed, 4 Apr 2018 09:43:18 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0E581406E8C3; Wed, 4 Apr 2018 13:43:18 +0000 (UTC) Received: from localhost (unknown [10.18.25.149]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D135B84426; Wed, 4 Apr 2018 13:43:15 +0000 (UTC) Date: Wed, 4 Apr 2018 09:43:15 -0400 From: Mike Snitzer To: Arnd Bergmann Cc: Dan Williams , Alasdair Kergon , dm-devel@redhat.com, Shaohua Li , linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: dm: fix DAX dependency Message-ID: <20180404134315.GA14708@redhat.com> References: <20180404095427.2537184-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180404095427.2537184-1-arnd@arndb.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 04 Apr 2018 13:43:18 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 04 Apr 2018 13:43:18 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'msnitzer@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 04 2018 at 5:54am -0400, Arnd Bergmann wrote: > Building device mapper with CONFIG_DAX=m now results in a link error: > > drivers/md/dm.o: In function `dm_put_table_device': > dm.c:(.text+0x33c): undefined reference to `put_dax' > drivers/md/dm.o: In function `cleanup_mapped_device': > dm.c:(.text+0x1054): undefined reference to `kill_dax' > dm.c:(.text+0x105c): undefined reference to `put_dax' > drivers/md/dm.o: In function `dm_get_table_device': > dm.c:(.text+0x2744): undefined reference to `dax_get_by_host' > drivers/md/dm-table.o: In function `device_dax_write_cache_enabled': > dm-table.c:(.text+0x1030): undefined reference to `dax_write_cache_enabled' > drivers/md/dm-table.o: In function `dm_table_set_restrictions': > dm-table.c:(.text+0x29b8): undefined reference to `dax_write_cache' > > This adds a dependency that prevents the invalid configuration, allowing > a built-in device mapper only if DAX is either built-in as well, or > completely disabled. > > Fixes: 4de1c562f7e9 ("dax, dm: allow device-mapper to operate without dax support") > Signed-off-by: Arnd Bergmann > --- > The regression only showed up in linux-next at the start of the merge > window. Any idea what happened? > --- > drivers/md/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/md/Kconfig b/drivers/md/Kconfig > index 49287135b86c..5e5a47c5ff82 100644 > --- a/drivers/md/Kconfig > +++ b/drivers/md/Kconfig > @@ -200,6 +200,7 @@ config BLK_DEV_DM_BUILTIN > > config BLK_DEV_DM > tristate "Device mapper support" > + depends on DAX || DAX=n > select BLK_DEV_DM_BUILTIN > ---help--- > Device-mapper is a low level volume manager. It works by allowing > -- > 2.9.0 > Seems fine, CONFIG_DAX=m was an oversight in commit 4de1c562f7e9 Dan, do you want to just fold this into that original commit? Either way, please feel free to pick this up. Thanks Arnd. Reviewed-by: Mike Snitzer