Received: by 10.213.65.68 with SMTP id h4csp770407imn; Wed, 4 Apr 2018 07:01:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx48YQfdbm81eT+sho8w9l5wfNXGXyqsAoNyhf/Mkli7io+XeR3goJDHM7PaWfFKDsH1TSYwO X-Received: by 2002:a17:902:1e2:: with SMTP id b89-v6mr18416551plb.389.1522850519311; Wed, 04 Apr 2018 07:01:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522850518; cv=none; d=google.com; s=arc-20160816; b=Db/R6/PqVPeVDKjwCqWotDpha9XlMHGqmlBY5F9/8dE9gyiKMzoGUIscGsokh/nglP PCtKHS6PeetQK8oYeC8CLIRIessXMaL0jAmIaZJzudwzjnhfWSlOJL6RooAE8ipKqCH0 XkPHdVPc/XYIBhl96nPpfO88eI5M/NiEFfDDigfWFYgOKXTVYCSooJdiJeVHaznofebQ oF3Y6xDlIlCBbzc47C0zfcOpxFnQNCyQfMgTeXqIn81wRQSMZCm+vRxzS1t5dLhriJsE E1qiocjyyTS4gIGiASNRBb1sexlQj4BMe6iJ6gKOXqM/lVHsb0f1Va/BcCSm/dJZdPQd jRIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=wD57ASaOvHuGc75KzuxSZg9vlFKagNucktZ4cJy1oow=; b=vEWeOTrBc7Zv3zIquuLAYNZ/jVTNkRDBT9r+qWq4AFupRlsgkhA5WhL+1p4Pz0j1up t88Pn9nHWJdF1qIXk8dxfdYrTagMPtLxyhVbmeU+eHdlrrB8n1IR1wfAw829pnuwRd2a kL5radm6BwGYfFi3zGdFwdYeBY/x8J59ulqq83jGGru8kjtteZiADc+NxnHaH1TYRgek D7gMzjHoukKPral0AOxbe07WTslZ6JBanAyeJl/mISNUcJolqLjCDEOBsA1j8SjbaTHl apLSXmpKkaXvOg8xR3/BrjYyPeJ228U67e0anZ/7eDyl52jUVTnXKYqmPH06aqcp0GBX axzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=DvVPfxpd; 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 n59-v6si3211040plb.46.2018.04.04.07.01.43; Wed, 04 Apr 2018 07:01:58 -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; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=DvVPfxpd; 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 S1751362AbeDDOAS (ORCPT + 99 others); Wed, 4 Apr 2018 10:00:18 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:38951 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750995AbeDDOAO (ORCPT ); Wed, 4 Apr 2018 10:00:14 -0400 Received: by mail-oi0-f68.google.com with SMTP id q71-v6so19305597oic.6 for ; Wed, 04 Apr 2018 07:00:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wD57ASaOvHuGc75KzuxSZg9vlFKagNucktZ4cJy1oow=; b=DvVPfxpdKJnUSB/2dcwAGya65ibFn2YcwuRYHBVK8cdRYNmNzOc541BUHB1IiUxpvk MZPGjPV1OLaZMobO2L+tiS4ojC0G0iBqdLx5NKrzoAIeASKnvc+FERCzltoCsR27wJnc bf7pY6LHdC80sOGEZNMrnGmejFdiYRL9HvSJrfMGOq8WTGVhteQw73CvDTN51eB+AmBM R5DwhkwOSXyv6FBq+Ag/UtbBeyHzbZH5mVmLtRSws1V4hPT4sSXCku+8IZuy7CQ6MDGR 3BEBK4KlYNAf9NNuDQh0ZgyUrgncfFt294Cdf6IsQYdFZs3/U7nMHOLji2EjKkddJZaU DTWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wD57ASaOvHuGc75KzuxSZg9vlFKagNucktZ4cJy1oow=; b=O17ZOCSaXwGiXtuYLvTc3tlL+aPixHAL7ksVEgh8yWnrkt+n5SkzGutpiNfH4NIXNI jQNGlw19Tqradv90NuHSzH+CnPWfSidkGssaL3CYm5EPTOuChAZ0UFPGXOUAh43P1fUU th8AwhaWdDz7HXRGBq9ZEtqB8SGiBAtSWfbOybewj1OpGkh6e6QlI08w9eVu7w/lhPO9 2GX72Iuo+NGxTUdxllQVbqgyHAxwD95ja87rea47g6aJgbZ4+eQut7YmpVlvswJdiLjP uOdBPrhAeo32CLumvXNslrTTCd7YR4XNw9wYnOo3Tj+OYs0Lx3L4WSbYPuGPv/3lJnSy utww== X-Gm-Message-State: AElRT7FlS9nUde6b002ubJsuuENmllJ+z4DWkMm0CjAf2WAMBqq3CgH1 qpiiaCqkePzp0LqcbY+UUAzeuRnExsKPW32JA0/kdg== X-Received: by 2002:aca:c68d:: with SMTP id w135-v6mr10430929oif.215.1522850414398; Wed, 04 Apr 2018 07:00:14 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:2435:0:0:0:0:0 with HTTP; Wed, 4 Apr 2018 07:00:13 -0700 (PDT) In-Reply-To: <20180404095427.2537184-1-arnd@arndb.de> References: <20180404095427.2537184-1-arnd@arndb.de> From: Dan Williams Date: Wed, 4 Apr 2018 07:00:13 -0700 Message-ID: Subject: Re: [PATCH] dm: fix DAX dependency To: Arnd Bergmann Cc: Alasdair Kergon , Mike Snitzer , device-mapper development , Shaohua Li , linux-raid , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 4, 2018 at 2:54 AM, 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? I had some larger reworks of dax pending in -next until I got a late report of a UML build error. Investigating that made me realize that I missed the device-mapper dax support in those dax reworks, I started pulling in late changes. However, this wider rework is to feel too late for 4.17... Thanks for the fix, I'll get it folded in and reevaluate what bits are still viable / tested enough to push at this stage.