From patchwork Mon Apr 16 21:21:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 10343809 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 A123F601D7 for ; Mon, 16 Apr 2018 21:21:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9156C28908 for ; Mon, 16 Apr 2018 21:21:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 85B682890E; Mon, 16 Apr 2018 21:21:20 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, 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 DBA822890B for ; Mon, 16 Apr 2018 21:21:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750946AbeDPVVS (ORCPT ); Mon, 16 Apr 2018 17:21:18 -0400 Received: from merlin.infradead.org ([205.233.59.134]:57242 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751199AbeDPVVR (ORCPT ); Mon, 16 Apr 2018 17:21:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:Cc:To:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=NE5qqvocvuvUemX9VdUajtgwP8W7EnvoH0GpOjHuY5Q=; b=j9MmtdwPkJHmplkzexTTAm4Ce8 qB41z+qNnhVxzsIZPY19bGaw00bAVsuazmazs7IyJViHiiQ+DehZs3h6klXaPWqaMNAlV2PXXl6+8 AMPpHN3Eia0qoh6lG1236M1gvxS9pqCUZLoFb/FldQ8FhOBF1kDI7TZPs7Zq5GNIcA4qzpWxKrDhB GGsT80I1IlrB2loTQQUchmMaBS7BX2tnps/NNwVJWOBdEGvh3LQUDFJzMsEfzyExuLt/S48g+PuOS v3mnyDx1dDYmX1y/fcq11Z7UYA1N9WaXu8vspI3b6GkxsvGs6YGmeRr8ljv0KcZGgopHjZkytl1SN VMcLcjpg==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1f8BYm-0006DJ-K4; Mon, 16 Apr 2018 21:21:13 +0000 To: "linux-rdma@vger.kernel.org" Cc: LKML , Matan Barak , Jason Gunthorpe , Leon Romanovsky , Doug Ledford From: Randy Dunlap Subject: [PATCH] infiniband: mlx5: fix build error when INFINIBAND_USER_ACCESS=m Message-ID: <81ea9f01-4624-38d7-2bfe-1dd7063fa3f0@infradead.org> Date: Mon, 16 Apr 2018 14:21:07 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Language: en-US Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Randy Dunlap Fix build errors when INFINIBAND_USER_ACCESS=m and MLX5_INFINIBAND=y. The build error occurs when the mlx5 driver code attempts to use USER_ACCESS interfaces, which are built as a loadable module. Fixes these build errors: drivers/infiniband/hw/mlx5/main.o: In function `populate_specs_root': ../drivers/infiniband/hw/mlx5/main.c:4982: undefined reference to `uverbs_default_get_objects' ../drivers/infiniband/hw/mlx5/main.c:4994: undefined reference to `uverbs_alloc_spec_tree' drivers/infiniband/hw/mlx5/main.o: In function `depopulate_specs_root': ../drivers/infiniband/hw/mlx5/main.c:5001: undefined reference to `uverbs_free_spec_tree' Reported-by: kbuild test robot Signed-off-by: Randy Dunlap Cc: Matan Barak Cc: Jason Gunthorpe Cc: Leon Romanovsky Cc: Doug Ledford Cc: linux-rdma@vger.kernel.org Cc: stable@vger.kernel.org # reported against 4.16 --- drivers/infiniband/hw/mlx5/Kconfig | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- lnx-417-rc1.orig/drivers/infiniband/hw/mlx5/Kconfig +++ lnx-417-rc1/drivers/infiniband/hw/mlx5/Kconfig @@ -1,6 +1,7 @@ config MLX5_INFINIBAND tristate "Mellanox Connect-IB HCA support" depends on NETDEVICES && ETHERNET && PCI && MLX5_CORE + select INFINIBAND_USER_ACCESS ---help--- This driver provides low-level InfiniBand support for Mellanox Connect-IB PCI Express host channel adapters (HCAs).