Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2952667imm; Mon, 28 May 2018 20:48:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKRG9lAiO3MLlNWhHCjffyT1qiHX5fSYJCIynQY2axQjWDTV4mg9bowD51wAZugcVIb01TW X-Received: by 2002:a17:902:7c84:: with SMTP id y4-v6mr7743032pll.262.1527565682761; Mon, 28 May 2018 20:48:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527565682; cv=none; d=google.com; s=arc-20160816; b=lPfr3PjHpYtf/8Ywl8Z0j7r/KpvE814JW9Y0hEbPxtSVGut7NAl5IIpdEWT9Y4ZQId kLUl/2UeuYZQeG3hNXN0wXJwc4FFPJEbHD7gBGfvz/t92rU0IT7hqzv6aREnmKWXLcMM mFccVgev5+mJz00RnXxsMPffcleItzGDqbEKBTaPQjooa5/mp7M4WakiPlGKTb0Cx8xL /LD02wf7rUwYfmI8q9Hf2NiWJLkW1e+lXHkgx5JPLFOvzK0IvQySIt4fTDbkS8sLx/hV 9U8CxMOxaLR0UYKeVpKEPyEiAWjlooRisW4L43+lRfaSO+3+q7GUeFjRKR85KBZoHgMD GvkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature :arc-authentication-results; bh=aAJxLYpBF7IyGn7toGsSNUgd/nNygmIomCBwXzEmr0w=; b=jynJNn0n52uaPq0uiE2vDqevrW30yzo7rQni7RBEGATa1sBPOHYXWd/rv+Uvr30eBu OlhfvEBBC/FREvrWO0R1iAu/DehJQJkTcpCVvy1hqoVtrbGLRYoAH4xeaBmD6F77tGo0 YilzTb7qqC0hBohNX9cX1TqZiFc5xy2mou4P2v2z4WcOUHgByvM0xhNbmHLXWoVXvdBx VcscoM8dbrxwECwzLvE3vOWilYHPLxJJU721BGsy9E6YXWOggwegItdBqkE240xnFWRz SNRLOuqjl/SU0nqMGPiY+j0lvpnlgkLcqA4ODPaPfcMxrWWo9Bqt+MjzvBd57o/2Txsa NScQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=YwMkIQhv; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r5-v6si31596379pls.227.2018.05.28.20.47.48; Mon, 28 May 2018 20:48: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; dkim=pass header.i=@google.com header.s=20161025 header.b=YwMkIQhv; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932871AbeE1SCw (ORCPT + 99 others); Mon, 28 May 2018 14:02:52 -0400 Received: from mail-qk0-f201.google.com ([209.85.220.201]:34919 "EHLO mail-qk0-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932824AbeE1SCo (ORCPT ); Mon, 28 May 2018 14:02:44 -0400 Received: by mail-qk0-f201.google.com with SMTP id c73-v6so11477366qke.2 for ; Mon, 28 May 2018 11:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=aAJxLYpBF7IyGn7toGsSNUgd/nNygmIomCBwXzEmr0w=; b=YwMkIQhvAGZu4gWpUWu2v5B7u3wEu5pEEU0dRCxuvDA4aZvrwBu3TaFccX7yyV7V1x Nk+qUh9GQtFi6Q4huFNqeKoXtiL06NnhlbevINzVqQT5XImLTI9G/HQBqCT2X9GY7qqj 9MIj7UMwIG4Yv5ai9+PRAvfjRbA6Y9oRnGNWABfdkuvIPS31qID/OFq1m+9uQm6sheJi 1dExRlWb1E2jFejO3tj7dadQ0Ftb+kCBq5CRm5RIQjoOCmXyYKVgpdfhIKgbhB7yxx4u h4bKCsmrkMd4ywjUrBUEco28hy39yCHKYpZM91vXXq93ywTquK/zw3dE0JD0uA4H/S8q rDgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=aAJxLYpBF7IyGn7toGsSNUgd/nNygmIomCBwXzEmr0w=; b=kyvseM3bia9T74JzhfXYCjCcYh+7tFZjZsvM+V9ymzCQn4rk5gV/fD8AWAgZnHJH21 0Vi7Y1zcCvVAANYxgRM64qexmG50agjTrl179PfbNXJr/ysLj3QTWrWKBFwHFJC2mqFW w30xU6YIipFIk20joLnJaZFL8uobQf7pqolmCvw1aUqjq8Jr4ehA57ppysYN3r5INMUM K4HT00ce3czu/6mIv9QHa+weuRFVmM8cyh+8pMECAOo4cuxlA3Yfo9KdkjvHI3tEP4iZ PnGeU1KdeUVXrbDoB9Kxr5ndycOS9jz/6DxotYivmhJJqCGzkDKyvq4m5AReRijYNEjq YDOw== X-Gm-Message-State: ALKqPwdUqkybhH06pkSOyHpTvFJkpKxJJ0/Akkg9YemrCYJjkh6/dGe+ uaHGjVoje1LOUIVmj0sBxPG3fXAyZIAb X-Received: by 2002:a0c:81ac:: with SMTP id 41-v6mr7700039qvd.21.1527530563011; Mon, 28 May 2018 11:02:43 -0700 (PDT) Date: Mon, 28 May 2018 11:02:40 -0700 In-Reply-To: <20180528163949.GA17505@ziepe.ca> Message-Id: Mime-Version: 1.0 References: <20180525213123.2113748-1-arnd@arndb.de> <20180528163949.GA17505@ziepe.ca> Subject: Re: [PATCH] IB: Revert "remove redundant INFINIBAND kconfig dependencies" From: Greg Thelen To: Jason Gunthorpe Cc: arnd@arndb.de, Doug Ledford , Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , oleg.drokin@intel.com, andreas.dilger@intel.com, jsimmons@infradead.org, gregkh@linuxfoundation.org, Steve French , ericvh@gmail.com, rminnich@sandia.gov, lucho@ionkov.net, "David S. Miller" , santosh.shilimkar@oracle.com, trond.myklebust@hammerspace.com, anna.schumaker@netapp.com, bfields@fieldses.org, jlayton@kernel.org, Bart Van Assche , linux-rdma@vger.kernel.org, LKML , 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 Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jason Gunthorpe wrote: > On Fri, May 25, 2018 at 05:32:52PM -0700, Greg Thelen wrote: >> On Fri, May 25, 2018 at 2:32 PM Arnd Bergmann wrote: >> > 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 >> Acked-by: Greg Thelen >> Sorry for the 9533b292a7ac problem. >> At this point the in release cycle, I think Arnd's revert is best. >> If there is interest, I've put a little thought into an alternative fix: >> making INFINIBAND_ADDR_TRANS tristate. But it's nontrivial. >> So I prefer this simple revert for now. > Is that a normal thing to do? For me: no, it's not normal. In my use case I merely want to disable INFINIBAND_ADDR_TRANS while continuing to use INFINIBAND. This is supported with f7cb7b85be55 ("IB: make INFINIBAND_ADDR_TRANS configurable"). During f7cb7b85be55 development https://lkml.org/lkml/2018/4/30/1073 suggested that we drop dependency on both INFINIBAND and INFINIBAND_ADDR_TRANS. Thus 9533b292a7ac ("IB: remove redundant INFINIBAND kconfig dependencies"). But 9533b292a7ac led to the randconfig build errors reported and thus ("IB: Revert "remove redundant INFINIBAND kconfig dependencies""). So I see no need to do anything more than apply ("IB: Revert "remove redundant INFINIBAND kconfig dependencies""). >> Doug: do you need anything from me on this? > I can take the revert.. > Jason Thanks.