From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot0-f194.google.com ([74.125.82.194]:34525 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932488AbeE1SS7 (ORCPT ); Mon, 28 May 2018 14:18:59 -0400 Received: by mail-ot0-f194.google.com with SMTP id i5-v6so14326403otf.1 for ; Mon, 28 May 2018 11:18:59 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20180528153834.2268557-1-arnd@arndb.de> References: <20180528153834.2268557-1-arnd@arndb.de> From: Dan Williams Date: Mon, 28 May 2018 11:18:58 -0700 Message-ID: Subject: Re: [PATCH] dm: writecache: add DAX dependency To: Arnd Bergmann Cc: Mikulas Patocka , Shaohua Li , Alasdair Kergon , Mike Snitzer , device-mapper development , Matthew Wilcox , Ross Zwisler , linux-fsdevel , Heinz Mauelshagen , linux-raid , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, May 28, 2018 at 8:38 AM, Arnd Bergmann wrote: > 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(+) > > 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 This should probably be depends on DAX && DAX_DRIVER as we at least need pmem or dcssblk enabled to provide a dax capable block device for DM to claim.