From patchwork Fri Sep 16 12:25:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matias_Bj=C3=B8rling?= X-Patchwork-Id: 9335693 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4229D6077F for ; Fri, 16 Sep 2016 12:25:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33AB329F6F for ; Fri, 16 Sep 2016 12:25:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 288F129F7B; Fri, 16 Sep 2016 12:25:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98C6529F6F for ; Fri, 16 Sep 2016 12:25:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934876AbcIPMZf (ORCPT ); Fri, 16 Sep 2016 08:25:35 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33434 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934217AbcIPMZa (ORCPT ); Fri, 16 Sep 2016 08:25:30 -0400 Received: by mail-pf0-f194.google.com with SMTP id q2so935777pfj.0 for ; Fri, 16 Sep 2016 05:25:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bjorling.me; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6dptnwAUkFSz/W9UbLtPZFNkuZqSElUdgZUhbvocqKk=; b=AzYCNyQzMSug5rnH+UTftiZW9oYx3KSRwfZQG3RkmR+P3V+4ijmWZ209KVG6K+o/1D qh9nGreui9Sb3wT0W1aJK/nbg97KRfIkx4GWxcj/9sW8AS5Cv9S4Rv6hoMBTt/lqQPEJ AMpa0qGVhyw9m7lfD3+ArOayhUdIYT0QLgSUk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6dptnwAUkFSz/W9UbLtPZFNkuZqSElUdgZUhbvocqKk=; b=ULmum6Bq3CdqG7XmBCRah45XLwQVZVOBK1FrUgSlIJdlSedyLHIcfWDy1BBq7JUWFa F7D0QMeCa/Sp9x1jNOZVXwd8K8Unhl5dBZ1jJpNjDIA6Llc0DWWrxqILiW0/3h5ODwQz 9NV0D6tcDO7VIdM+w+KbOFDIF+C8KWTzoLzM+Z6IxR3O3l2sczNY/Um87UD3++50ou0b 8Z9Fiu+w0g6+lXoAkoE22ybGCPghBmngU8vcM2Sse2LjtZWd9E88FqJjtKN/MlDVA6Cu SQZXhLUQrntNxvVoHkb5SI5z2ARcWNbYMII0LA1TQkwBUX7QmeHsmPF1V4V9wsgxwnoF 7+iA== X-Gm-Message-State: AE9vXwPnzpykidpHu2ViSPBHSJ2o0xXJt8grTQiY98dvjT1BjSulUxcA7Knea+Chavi6kg== X-Received: by 10.98.109.66 with SMTP id i63mr22701885pfc.126.1474028729314; Fri, 16 Sep 2016 05:25:29 -0700 (PDT) Received: from Macroninja.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id 3sm52129423pfz.33.2016.09.16.05.25.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Sep 2016 05:25:28 -0700 (PDT) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, axboe@fb.com Cc: keith.busch@intel.com, Geert Uytterhoeven , =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [PATCH 1/7] lightnvm: NVM should depend on HAS_DMA Date: Fri, 16 Sep 2016 14:25:03 +0200 Message-Id: <1474028709-30260-2-git-send-email-m@bjorling.me> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1474028709-30260-1-git-send-email-m@bjorling.me> References: <1474028709-30260-1-git-send-email-m@bjorling.me> MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Geert Uytterhoeven If NO_DMA=y: drivers/built-in.o: In function `nvme_nvm_dev_dma_free': lightnvm.c:(.text+0x23df1a): undefined reference to `dma_pool_free' drivers/built-in.o: In function `nvme_nvm_dev_dma_alloc': lightnvm.c:(.text+0x23df38): undefined reference to `dma_pool_alloc' drivers/built-in.o: In function `nvme_nvm_destroy_dma_pool': lightnvm.c:(.text+0x23df4c): undefined reference to `dma_pool_destroy' drivers/built-in.o: In function `nvme_nvm_create_dma_pool': lightnvm.c:(.text+0x23df7e): undefined reference to `dma_pool_create' and ERROR: "dma_pool_destroy" [drivers/nvme/host/nvme-core.ko] undefined! ERROR: "dma_pool_free" [drivers/nvme/host/nvme-core.ko] undefined! ERROR: "dma_pool_alloc" [drivers/nvme/host/nvme-core.ko] undefined! ERROR: "dma_pool_create" [drivers/nvme/host/nvme-core.ko] undefined! Signed-off-by: Geert Uytterhoeven Signed-off-by: Matias Bjørling --- drivers/lightnvm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig index 61c68a1..2f5d5f4 100644 --- a/drivers/lightnvm/Kconfig +++ b/drivers/lightnvm/Kconfig @@ -4,7 +4,7 @@ menuconfig NVM bool "Open-Channel SSD target support" - depends on BLOCK + depends on BLOCK && HAS_DMA help Say Y here to get to enable Open-channel SSDs.