From patchwork Mon May 28 15:38:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 137090 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp2974246lji; Mon, 28 May 2018 08:39:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrueD060H5MUofMXTEJ+ykqXl/Y2nG4k4eANfDqMCebt23NOxzFXhpjLI+8w5X+Oe2Li3vi X-Received: by 2002:a17:902:694b:: with SMTP id k11-v6mr14202795plt.334.1527521958199; Mon, 28 May 2018 08:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527521958; cv=none; d=google.com; s=arc-20160816; b=Qknj5dL+NKVgbyQPqZOJd65QJADmMjdpArivzgq0jhfi8vfQ38sinLwVX9QGhrgcyf 22X4Vmx148sCPFSqFo4OMPKyo0tnWFrOkSo9w1Le1T/6GWPCar8ZX/dp4q7XamBE1Pux A/pV/NRCnPaP4wLectHLowqCsFsWIxJ7uqi5aub+fw4LKAYSBx7L0FA+8uidMxTyTAZZ cFoiPXCM9sZh1B2tJruc4+WevdX5k7xszvhOVyBnKuj13OqVTh54gN8VsNN91ujd7Bbd l1oVk7cceY6uJmjAxzdPVGadkE6qyBIdoaZR67/5CCSybDfeR4Wo2ZruirriC4zPx2qQ ahbQ== 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=sFDnTp8olFsTip/V3jHC6YVREX1bZnrJKzn7K1jCkKY=; b=BaUTXgykEAa7C6WeLh0mcHmQS+11woa7M0reRVrV/HP3RXqOUEOdruw6l3FTIRZY2E 1pCfGrv4BIwiIeISMKW5Zvr5mQgxE00iX0yRt3Ywq88o/BixXjarQvM2jzdMCLRLUb6s JZcbklLcG3xA3C76AiKTnjef5gWCVosiTUtJHuZ0tjxbI/h6EvJQhmcmkRUa6wbhSKqP RjJi+PdCcPm+nxLSTMIYdK0qqKdzkmDkSGg94tR7FVQJ1v6jXOeXid+ErNamJH4A5ceL oL0r1Nxm5jn8K3DK88Bab65iA5fWAQ6J4+XSUqVjRCyOyOfHmaaPjfwFi5sTHO2AXbEa 3iFw== 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 a5-v6si30897791pfc.106.2018.05.28.08.39.17; Mon, 28 May 2018 08:39:18 -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 S1034677AbeE1PjO (ORCPT + 30 others); Mon, 28 May 2018 11:39:14 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:54205 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S969088AbeE1PjG (ORCPT ); Mon, 28 May 2018 11:39:06 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0Lst3q-1gLRx728Fu-012Zat; Mon, 28 May 2018 17:38:39 +0200 From: Arnd Bergmann To: Mikulas Patocka , Shaohua Li , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com Cc: Matthew Wilcox , Ross Zwisler , linux-fsdevel@vger.kernel.org, Arnd Bergmann , Dan Williams , Heinz Mauelshagen , linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dm: writecache: add DAX dependency Date: Mon, 28 May 2018 17:38:10 +0200 Message-Id: <20180528153834.2268557-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:RVNtoTNxmkupetdjiOpqWgwo6lSqiBxyBsOD/guBm6k/BgIb1bU /PkFlS0foP11aHO8R3kgO1Lp7VW92gLWVPQgJdrVS/nFASHjIkRppnPw2QzQSRTdJnzlmxc Q2pE4xGD49yo/xR9D/++PL28JK0ukas67VXppxQSRd2sV0e3YfwtlNCSkVwbBpxRDv/pggt 6JFG8Ca+lXli6dYSgcvlA== X-UI-Out-Filterresults: notjunk:1; V01:K0:ouZeIPFc7Os=:KUhffD8Bt0pxIgBdPPYEjn rUrjnOcg/ETHJg+aoiKr8nTLXOzU4fcKT7WdOYUCgjokiZ07tuDiyqfGT4uxn4tAo5BSmtc1a rUpaeso2/KouH3k4q9srz8sfDjZEIL5I/LiGi/q3z5NOPG2+meMbVAImvBsg63UztUevn8pFw uM01/c29aHtDjjmdpCSsuxhTuEwtrmSqEj8BmulVH83/v+j4qZu+ij5fH2sPDkBIotmiANCFv H3BUsMPcVabzgf8a7NF6e20AVc8wWzEMlCsDCHKNB2rEq+9cNvxQ91XuD+mfngLSqMl893hhx 2Zk5Eodm0KVZ+lMWsKmRa5S2jJRL5FD9R1s8DzCAgyums59Xo1zuuTx8iEFPynfpi1MAtm+yn EjLkRQBBQxMBz7UjNdG4vcQXfV6Ou9ngi6Tq8U9kbSpLxQOAXMVFS4qXTPoRGKEXUs5bt5glK Vf7kEY7hqiyYBlnZJQ4Y6Ni9a0uowfXQ7eOiSwp47gB7alrQ+JiQWJC9SLxbFjgREhqjJEnc1 WjH6ic4Sm8jLlCpdT+7Nt3URb2VLmxb8CYpx/Xk4NBSZCcm41X+a0x90fe0d+l3+IdcrKgibv BtaObZ63bGAORN1HNySB6r7JMRMpdgj5FW2MpM41YP8HVeslf9cvu/iexso87Lno7PT/9Q6Pc qmWfu0J9Tp6oSU2RCfazALeU+KCM7oc8LRReWmUkc1u5qQDWaHKUuhS363LR41YS4R38= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The new dm-writecache driver inconditionally uses the dax subsystem, leading to link errors in some configurations: drivers/md/dm-writecache.o: In function `writecache_ctr': dm-writecache.c:(.text+0x1fdc): undefined reference to `dax_read_lock' dm-writecache.c:(.text+0x2004): undefined reference to `dax_direct_access' dm-writecache.c:(.text+0x21cc): undefined reference to `dax_read_unlock' It seems wrong to require DAX in order to build the writecache driver, but that at least avoids randconfig build errors. Fixes: bb15b431d650 ("dm: add writecache target") Signed-off-by: Arnd Bergmann --- drivers/md/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.9.0 diff --git a/drivers/md/Kconfig b/drivers/md/Kconfig index 852c7ebe2902..f8ecf2da1edf 100644 --- a/drivers/md/Kconfig +++ b/drivers/md/Kconfig @@ -338,6 +338,7 @@ config DM_CACHE_SMQ config DM_WRITECACHE tristate "Writecache target" depends on BLK_DEV_DM + depends on DAX ---help--- The writecache target caches writes on persistent memory or SSD. It is intended for databases or other programs that need extremely