Received: by 10.213.65.68 with SMTP id h4csp535539imn; Wed, 4 Apr 2018 02:56:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx48ZmulOO6UDXmOuPFNpcVJ/HUituZktx1JjJV45m53rX506wZzSyW/W1E21sRyp/OmoaNcq X-Received: by 10.98.159.129 with SMTP id v1mr13099698pfk.25.1522835762083; Wed, 04 Apr 2018 02:56:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522835762; cv=none; d=google.com; s=arc-20160816; b=IP3Qz74z1brKytaslYWI6OgF1/x+xVZvuajnMQLuI343modcvJkcvE1ew5Poq/0Be/ 2e7hOTjsw1L6YGi2MWo10vm3qOIrJ82XD+JOPwQKONujgcyPD4eYMfHQPq873ilRTsoY QPfKGKZ02h5pKtZsNBOT+lZDUz8jLTk2lVx9TeJyhJcbP1pWE4SXueWGu/vu1L/Layee CgnJTKhYaLavK/NhjBFUyFVUYOm8ZCRY3ypqD02mc6h2P4w8V2Ki3U5Eba7LKWNfqW1h cI0eR40Cm8Skwa39k2r6EdKzJde/SHjsuJBQ008PzrO7Mg0AeUrSH3A/B0Iy/1vfBatI v4hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Us7GHPBPFlvEFZbulF6xKswz+w/7K+r/uI9mSATmhjo=; b=0G60EPclD06NjmXZkOZpwdjpZTCjdEWSyeiDWyYJ3zJLmukPQunZsjJ2fx3N+gjA4e w59ckRJrejNXfRoDJaSjVTmDYnP1dd2yNilfHhAQwlOAfCI5W64IBKl1UICGZr7+IQlu ZqqtM5qncHa5L1qLQBU3DNeFtdvdx/PafS1ZyXY2mCAOvUo0lsCtQ27y3qOIrFbK6Kk9 p0wC1Q0V/+E81DEbE9bMqptD8fbhNGeERv0QqAzw1yYHym5zKPB0ZlREFp+pqnZxx0iY lCjI2ooy5FVbQw5qti4OJg4xM7G0ypO3OB1bONoyjYbOPjNnZmSmG5VZyRrlY37o0zFR 3/IA== 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 5-v6si2701722plx.148.2018.04.04.02.55.48; Wed, 04 Apr 2018 02:56:02 -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 S1751241AbeDDJyo (ORCPT + 99 others); Wed, 4 Apr 2018 05:54:44 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:36883 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750736AbeDDJyn (ORCPT ); Wed, 4 Apr 2018 05:54:43 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0Li5PX-1eiKwA48iB-00nPXD; Wed, 04 Apr 2018 11:54:30 +0200 From: Arnd Bergmann To: Dan Williams , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, Shaohua Li Cc: Arnd Bergmann , linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dm: fix DAX dependency Date: Wed, 4 Apr 2018 11:54:15 +0200 Message-Id: <20180404095427.2537184-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:XF3krF2cufn5ZqbP1HwLxfM9yMhIKbJ0j+SUPY/m6Jgd7+zUvrc dBe7Tapg94uK6OvZ7XQh3GeSLkg9K3Oic0yNIAw287U+QpUfU8fmnLqM+wM+rb+BvkkM8Zu Zg2EJ0a9Hpq1ONgNgEN3xzYtWs3/t6KPPxPt3cUYzKuIg/Eb0OuJ280OiRx+hzCyhzIpZna SrRikSFiky6l/69apegbg== X-UI-Out-Filterresults: notjunk:1;V01:K0:nSWNP0NIF80=:ldmkHYkY5GMm6bSTtb/Coo oRUrLxXzhmMXyOwh2V1tqqBGBgZSs+9J9nu9/BzT6KldwJLlyU4VBFnyhDP+p8UQNuVsEJ8zN ZkTXQb1TDkqsKNK/FwVV7NnXF0cWyD1az2OXJx/oOu0XZ6FQLswJL8B/Cc1mGylmDR1eKWQ/t SCmVEphXOoEW5Dxf8SnPqKmsF335xrTQZmXOf77RYJTWLbytDNM4g71JfQIfHv54QaKNhDzNg WnY3+pA3vGubntstyDR2UwQiMkhqXkKpx48a656oc2m7V6iWu1be6FY3zmldQiWUXGFP1O3CC M/+Aad85y9PtKsjATBCeZZBYieKKlbbUHA+V/fz2viPHN+OEUy8U/IJIFlEoixRW+NlXF5pCj vk2Gm5p6itWzMXgTxs4YSvtnetPjO+mhCRto9TX0G8H2tcFcz39/Wjrdaikb8nSd10yHJtRS2 zhh1uUJyl8Vd6buxl5KfmHRKuiFL+ss2Q4aqw4mcz6dvOlcK6PgurzP9gg9/CPxUrnJ7PpdaC xK7pd+fSq+bh62vNbvH61mqMGiT55toiG0fG2LKxVC5MVgIm9GkJV+kVosLxigFTU5zXjPTyf W+5F3D4AdN/QMnRm6k3Ul3/zbV1UcWokGzsz2I/ScdAQAs+kI521Ipe9DXHGg7ED8f5MKFDtU QISknX5IC9wXJ1rS3jQdXtRK8PlnN0O8zkG7cM77RSSJB0xhLWnafLM7htCsbT72ikI6FgL9x NQ1Iu8pSzXCwnvNGCBpc+6KQugc69y2n5c7Fhg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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