Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp74140imm; Fri, 25 May 2018 14:33:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrvxbjpe6bkm/Z/N/63ZrM7MK9MyCqw80TVvbDIzaoBIE3WMAgVQwaVAvZ17qDJrpLfQWsV X-Received: by 2002:a17:902:9a4b:: with SMTP id x11-v6mr4285647plv.176.1527284031316; Fri, 25 May 2018 14:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527284031; cv=none; d=google.com; s=arc-20160816; b=xgRRMw0buagRWkF349MSKJPP9+i1llTMCK9VsvfiaZ1od157LZzA5GRBt71aYclfM1 hR2f8+uuJx7oYfZHqMRifyDlZAk0Ii8BSC1wUHiwFTQBKQgR9BuqUQp0mC34fNWYicnG QGZj5d8+vGsIB6nqr3NTdfQBAuo62OG4wt7esDcFW2JwWnptv/oLuY4JN3WxpFVpXr5n /2nopvZqWHeh8io+xCxyLB84gWo/iJlWHLB0nZyiI6bRKKS5euZlnMuWcItK0w5QvQ8C EirFHjRcju5Pvm+iF5NhsgFANidMg/EqhXGwwqq4Y36Rf6N21PTLifchpn/Pyq4zLxo3 Fy3g== 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=OUKgQgOwv3WPZboECpAaYeW9bc76oQxh1vRQVwcHLdI=; b=JakzYLwf8bjYs3RmK/buJ5PR7pbR+cSbY5I/ItJd4u9/obBHDozqLvHEUSTvalayUc PEHJPgt/ukJL88kDJ33B4a4e+Ltyv9QSzQ+dxKQSUEH1m0Y80Dj723c8JIfQ/Nfwl4AJ VKvtPnmPLpfcYgObSyXESLtS0Pn+zm3nCaf5Yl8y+Jw6jCsZYLIuxrIntKSq67oHjS9g dWRCwg0lMU8jLcocg9Uii27q5STgLvNG1zomFaMeODaPi99X+w1tzGFXXXKgXKecXsok Mx6BWe+rD7UQHEo1UM1/hYqP9scM7O8gBF1dGbgptp+Fg8LyS7VN4J4b23EaugI5IFh5 +BGA== 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 x20-v6si224498pge.395.2018.05.25.14.33.36; Fri, 25 May 2018 14:33:51 -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 S1030362AbeEYVd0 (ORCPT + 99 others); Fri, 25 May 2018 17:33:26 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:47101 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030216AbeEYVdX (ORCPT ); Fri, 25 May 2018 17:33:23 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0MQwFa-1fmIEx11xe-00UKYk; Fri, 25 May 2018 23:31:37 +0200 From: Arnd Bergmann To: Doug Ledford , Jason Gunthorpe Cc: Arnd Bergmann , Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , Oleg Drokin , Andreas Dilger , James Simmons , Greg Kroah-Hartman , Steve French , Eric Van Hensbergen , Ron Minnich , Latchesar Ionkov , "David S. Miller" , Santosh Shilimkar , Trond Myklebust , Anna Schumaker , "J. Bruce Fields" , Jeff Layton , Greg Thelen , Bart Van Assche , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, lustre-devel@lists.lustre.org, devel@driverdev.osuosl.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, v9fs-developer@lists.sourceforge.net, netdev@vger.kernel.org, rds-devel@oss.oracle.com, linux-nfs@vger.kernel.org Subject: [PATCH] IB: Revert "remove redundant INFINIBAND kconfig dependencies" Date: Fri, 25 May 2018 23:29:59 +0200 Message-Id: <20180525213123.2113748-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:6dM/aryXmjzl7pwalJqKM2a+q2VxZC/d9ShPqU2qlA6YJqgxUHJ khLJoTtrRv3WYqEdB/sD9L4zueJ48TnOyppdGTedfal6DvSCSCsvzj+uqA79l8psC1RsdL5 58ZcLdm1udoW8l/VMa02AWiD3p91Db8e5/D5J2sq3DsoPAmqx7A0Sy734agQbraBuQd6CbZ lEEttKA9iaoxeScnc5MkQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:R6EwSW09LQ4=:Sn6V7Yx84VWkPuLklX9RAV AEQAeAKTdUsliTLQCzaj4YFi2SMDO/cf5LefM9pAYff3jb6MViGFh2A1W6cBLN15OQlCKAiu4 3Ei56CQE9LT3HoK70oyR8MEpSFz0kXx+X0jfPji+7/uEgbmTrXBzDbS1509abZQmE68lBGReV gecQ3eZh22ymLwsB9D7wP3JYz018cXnBCF7hGIGmUJxN7nCAIuSMqtRpLyoubAEG/RFKBeAvk HdPAcxbZ7u+JMmle9pvDX/f38oTiRakE1PgG+WE7KqXNIt8mMmdTD5Dvrfw76hXHpLBNKsrHR ftJ5xIHbBfoKrdaTacBA8MlEF8R08GKsOFwKiQob7DAraKDP7ihEogjJa7duuG/3deTZZRcvc SAAywTDeMK3rQ4nap5VitXORuQboVdusUOaeUcazSRgZhJIj0ZI4odD2N8E1IA3qlpmbYb1FZ JOIWbdtLk+NeZ6LEeIVXCCfVQkrNObCLTYC0oQF6VGO2WJiuCyYzxfKHkn3DPDsgzGAMeMoK7 90cCi+a6vob0/IK4j2JinwDfyOIn6tB1UgdjqM4JAZAjELCWcPgMN1Owfy1PhqrfrlSm24axx r9oEOtxCVCPauj8uxcIULx+96o857bOcTE3hpRm+ZQj3L4R+G7O+mMzq6w8pajJfCr1lLVnoe IcQKrp3Ip/uYDGMvDxFlbeu+LXWwNMWzcOCrjPOwwudkWsbEFAE4PRuvmVYSUbW/OVBM= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Several subsystems depend on INFINIBAND_ADDR_TRANS, which in turn depends on INFINIBAND. However, when with CONFIG_INIFIBAND=m, this leads to a link error when another driver using it is built-in. The INFINIBAND_ADDR_TRANS dependency is insufficient here as this is a 'bool' symbol that does not force anything to be a module in turn. fs/cifs/smbdirect.o: In function `smbd_disconnect_rdma_work': smbdirect.c:(.text+0x1e4): undefined reference to `rdma_disconnect' net/9p/trans_rdma.o: In function `rdma_request': trans_rdma.c:(.text+0x7bc): undefined reference to `rdma_disconnect' net/9p/trans_rdma.o: In function `rdma_destroy_trans': trans_rdma.c:(.text+0x830): undefined reference to `ib_destroy_qp' trans_rdma.c:(.text+0x858): undefined reference to `ib_dealloc_pd' Fixes: 9533b292a7ac ("IB: remove redundant INFINIBAND kconfig dependencies") Signed-off-by: Arnd Bergmann --- The patch that introduced the problem has been queued in the rdma-fixes/for-rc tree. Please revert the patch before sending the branch to Linus. --- drivers/infiniband/ulp/srpt/Kconfig | 2 +- drivers/nvme/host/Kconfig | 2 +- drivers/nvme/target/Kconfig | 2 +- drivers/staging/lustre/lnet/Kconfig | 2 +- fs/cifs/Kconfig | 2 +- net/9p/Kconfig | 2 +- net/rds/Kconfig | 2 +- net/sunrpc/Kconfig | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/infiniband/ulp/srpt/Kconfig b/drivers/infiniband/ulp/srpt/Kconfig index 25bf6955b6d0..fb8b7182f05e 100644 --- a/drivers/infiniband/ulp/srpt/Kconfig +++ b/drivers/infiniband/ulp/srpt/Kconfig @@ -1,6 +1,6 @@ config INFINIBAND_SRPT tristate "InfiniBand SCSI RDMA Protocol target support" - depends on INFINIBAND_ADDR_TRANS && TARGET_CORE + depends on INFINIBAND && INFINIBAND_ADDR_TRANS && TARGET_CORE ---help--- Support for the SCSI RDMA Protocol (SRP) Target driver. The diff --git a/drivers/nvme/host/Kconfig b/drivers/nvme/host/Kconfig index dbb7464c018c..88a8b5916624 100644 --- a/drivers/nvme/host/Kconfig +++ b/drivers/nvme/host/Kconfig @@ -27,7 +27,7 @@ config NVME_FABRICS config NVME_RDMA tristate "NVM Express over Fabrics RDMA host driver" - depends on INFINIBAND_ADDR_TRANS && BLOCK + depends on INFINIBAND && INFINIBAND_ADDR_TRANS && BLOCK select NVME_CORE select NVME_FABRICS select SG_POOL diff --git a/drivers/nvme/target/Kconfig b/drivers/nvme/target/Kconfig index 7595664ee753..3c7b61ddb0d1 100644 --- a/drivers/nvme/target/Kconfig +++ b/drivers/nvme/target/Kconfig @@ -27,7 +27,7 @@ config NVME_TARGET_LOOP config NVME_TARGET_RDMA tristate "NVMe over Fabrics RDMA target support" - depends on INFINIBAND_ADDR_TRANS + depends on INFINIBAND && INFINIBAND_ADDR_TRANS depends on NVME_TARGET select SGL_ALLOC help diff --git a/drivers/staging/lustre/lnet/Kconfig b/drivers/staging/lustre/lnet/Kconfig index f3b1ad4bd3dc..ad049e6f24e4 100644 --- a/drivers/staging/lustre/lnet/Kconfig +++ b/drivers/staging/lustre/lnet/Kconfig @@ -34,7 +34,7 @@ config LNET_SELFTEST config LNET_XPRT_IB tristate "LNET infiniband support" - depends on LNET && PCI && INFINIBAND_ADDR_TRANS + depends on LNET && PCI && INFINIBAND && INFINIBAND_ADDR_TRANS default LNET && INFINIBAND help This option allows the LNET users to use infiniband as an diff --git a/fs/cifs/Kconfig b/fs/cifs/Kconfig index d61e2de8d0eb..5f132d59dfc2 100644 --- a/fs/cifs/Kconfig +++ b/fs/cifs/Kconfig @@ -197,7 +197,7 @@ config CIFS_SMB311 config CIFS_SMB_DIRECT bool "SMB Direct support (Experimental)" - depends on CIFS=m && INFINIBAND_ADDR_TRANS || CIFS=y && INFINIBAND_ADDR_TRANS=y + depends on CIFS=m && INFINIBAND && INFINIBAND_ADDR_TRANS || CIFS=y && INFINIBAND=y && INFINIBAND_ADDR_TRANS=y help Enables SMB Direct experimental support for SMB 3.0, 3.02 and 3.1.1. SMB Direct allows transferring SMB packets over RDMA. If unsure, diff --git a/net/9p/Kconfig b/net/9p/Kconfig index 46c39f7da444..e6014e0e51f7 100644 --- a/net/9p/Kconfig +++ b/net/9p/Kconfig @@ -32,7 +32,7 @@ config NET_9P_XEN config NET_9P_RDMA - depends on INET && INFINIBAND_ADDR_TRANS + depends on INET && INFINIBAND && INFINIBAND_ADDR_TRANS tristate "9P RDMA Transport (Experimental)" help This builds support for an RDMA transport. diff --git a/net/rds/Kconfig b/net/rds/Kconfig index 1a31502ee7db..bffde4b46c5d 100644 --- a/net/rds/Kconfig +++ b/net/rds/Kconfig @@ -8,7 +8,7 @@ config RDS config RDS_RDMA tristate "RDS over Infiniband" - depends on RDS && INFINIBAND_ADDR_TRANS + depends on RDS && INFINIBAND && INFINIBAND_ADDR_TRANS ---help--- Allow RDS to use Infiniband as a transport. This transport supports RDMA operations. diff --git a/net/sunrpc/Kconfig b/net/sunrpc/Kconfig index 6358e5271070..ac09ca803296 100644 --- a/net/sunrpc/Kconfig +++ b/net/sunrpc/Kconfig @@ -50,7 +50,7 @@ config SUNRPC_DEBUG config SUNRPC_XPRT_RDMA tristate "RPC-over-RDMA transport" - depends on SUNRPC && INFINIBAND_ADDR_TRANS + depends on SUNRPC && INFINIBAND && INFINIBAND_ADDR_TRANS default SUNRPC && INFINIBAND select SG_POOL help -- 2.9.0