From patchwork Tue Aug 21 14:20:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 144733 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp5338334ljj; Tue, 21 Aug 2018 07:21:16 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy4qlJ4VcYWioGpe1mKi2a2BieOarBIwJIJApQhajMofZMD5xmmmcUr2p9NX1ES22ZOVk7j X-Received: by 2002:a62:cd3:: with SMTP id 80-v6mr53889546pfm.184.1534861276779; Tue, 21 Aug 2018 07:21:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534861276; cv=none; d=google.com; s=arc-20160816; b=Q2OyJqoYBs7YSUOzFXv32fg6FgsHVO4lmzSFYfn4lKjSzDsyZk0HTnsOyV26PdOcbH E1JDHq2ehIgNBGL4Gc7EEjYW5jZP3QI/Ur4s7BvtxsoWsOuUrghKlOK65yKLGje8xPZD sCgfbV9/LHhPSG+TShTILzTefDFT593vPGFD0s01ykYzhlTVcIajBAxPYuTic+gXGTtb j0RyNb+zjYSIMs5jD9fS5FrKrswHsYwCmXrFWT15FrZTRVaIjhaIIwKMT+w/hc/cF1ew O3fyWkk80zh/HEUUSew6NB9swsCudo+Oz0KiOYuFfkEC4EIlH2ZF6r3V2ZxnK8xyRMUD iZkQ== 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=Jc3zN4YozEBkG0X/hgfWUMS5qLavd9sLp84ABVRR5Tc=; b=p9AmT0ySbWb+nsWEEffzp6uZCGgx57T/AXBKHNx1thOWyGUH8S490FsA3Qm6qOTHjC b8SwOerkhsOStywL+hjfLCF1TYn8x8E96UPxIWKOSn2b44v84F6Q/fGVIyZ0zhBtK/n4 WcVQsxgX1Sv59nkJMeu8BRdDieRaN0RPk/BoX6kafzcNT9ToaZ0WvWhHcjpaNNQ/4K14 1I6EHyIy4FVMo44rn6Cvvzr7CIKdgg1083BDO8ig2E6ZD/lBu9mavCrKGD/QNNM3v2V1 6NEfJEv+dhS2dRBui6tg+fk6BLDtl+TgXjNhJCyAcBVfoPX4eYlz/SIavMA36OBp3llb 6QiQ== 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 f89-v6si13029653plf.20.2018.08.21.07.21.16; Tue, 21 Aug 2018 07:21:16 -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 S1727611AbeHURle (ORCPT + 32 others); Tue, 21 Aug 2018 13:41:34 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:40773 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726590AbeHURld (ORCPT ); Tue, 21 Aug 2018 13:41:33 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0Lq1ku-1gN2R31yNM-00dkBQ; Tue, 21 Aug 2018 16:21:01 +0200 From: Arnd Bergmann To: Doug Ledford , Jason Gunthorpe Cc: Arnd Bergmann , Leon Romanovsky , Matan Barak , Yishai Hadas , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] IB/ucm: fix UCM link error Date: Tue, 21 Aug 2018 16:20:44 +0200 Message-Id: <20180821142100.2250647-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:j4Viy4RFwdOUAKBVAHH2hGbQvOXvAIcHCh8CwmLaCDEhaZxApK8 s3/FdQBdA8eBfMb5eVPHLUN4Zn+5FHpzbtH1AIzMiPERkroyiW7mPZxWt9pjagPqKqBhcPx 8nJyj1qzptn7Hr/iCxPT9u7WXRwJyrFFMnYscIvO8Tx0Pq6cVfzNPruAadS3qLJ9q+Pzi2n Wy/PrQP0eWGn16MMrx4+A== X-UI-Out-Filterresults: notjunk:1; V01:K0:vgF9bWMQP40=:8lKmIOFZB6URtfu/5U1CMT xDQ/V4ovgm66eMmOJyQv/rlp4Q/13eKZHVxm0fVFGPOWqreFljLvEs30m67+xUExawtylpvd2 MmQo5T2aO/H1ZaseaBrF+3ylJrKrbwEoXfmgXKzNuDYJ1CToDs4eHIuE1HCRsMJKUohVeVsns UyNUD4tOeYrzvwlLu1u97kW/AThV067gFWUMsieosUx25kRpqTuLbU0CvN2HXxveHOuRKys+l fzfubfUEgx+IMnIbGflS8+Lw9ulHsnBzliqfUEMX5C6SydIcRXZIsfBkkc495RLb74JWWoQZF +/komJA4H7W7Y4uE86JEfp+A3ugp6coeZYuH6W4Ratm68/6nES0/rAJFVTKJLo90jxgU9GLkD 4QmjCW0Jt8j6GgfVYLv790+dBzQOxLPbmT569rG+I639/5dudJ8xhhR3+QXVtwib9z0/uwyqa ae3Ugzg58OGlSftFyp57jM6fVk9f5mI2nXYm73sUZbw7iP0O+xaii/bfQba4UzOMsxYIda04M T5p4hL+QTFxjqsZO3r3oL+QiNMVYf/igP/6RlcvJPpZi9MypRtHhWaOQbLlBRjbylNaFds9Q8 PnEz4hwxwkSWe0yAgV2pFsMAu7wdA+MNZbU83yccPmFWTYeoxFJdxpoC9wrs+lcDK5RLS73i+ kx1teLfEqlxze3WkHWRgKCQvrW739h2ZCMmaZH+swavrwq/F75Yf6dFog4ex8Y9Gw7f4= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Building UCM with CONFIG_INFINIBAND_USER_ACCESS=m results in a set of link errors including: drivers/infiniband/core/ucm.o: In function `ib_ucm_event_handler': ucm.c:(.text+0x6dc): undefined reference to `ib_copy_path_rec_to_user' drivers/infiniband/core/ucma.o: In function `ucma_event_handler': ucma.c:(.text+0xdc0): undefined reference to `ib_copy_ah_attr_to_user' To get it to build-test again, this makes the option itself a tristate, which lets Kconfig figure out the dependency correctly. Fixes: 486edfb1039d ("IB/ucm: Fix compiling ucm.c") Signed-off-by: Arnd Bergmann --- drivers/infiniband/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.18.0 diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig index 1d6f5710d1df..176b943dfec9 100644 --- a/drivers/infiniband/Kconfig +++ b/drivers/infiniband/Kconfig @@ -35,7 +35,7 @@ config INFINIBAND_USER_ACCESS rdma-core . config INFINIBAND_USER_ACCESS_UCM - bool "Userspace CM (UCM, DEPRECATED)" + tristate "Userspace CM (UCM, DEPRECATED)" depends on BROKEN || COMPILE_TEST depends on INFINIBAND_USER_ACCESS help