From patchwork Sat Jul 1 00:30:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 114933 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp10756247vqr; Fri, 30 Jun 2023 18:01:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlETJhPXeIYJ2ssn13NII1//1rjZtVcPcudg4Th1f3fZOw3bImeAwaY7o71hRKmCxP4LDt7g X-Received: by 2002:a05:6a00:15c9:b0:674:8fe0:126f with SMTP id o9-20020a056a0015c900b006748fe0126fmr5871484pfu.27.1688173298859; Fri, 30 Jun 2023 18:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688173298; cv=none; d=google.com; s=arc-20160816; b=FXSO6qMYmJ0sQeLnLD2Nyx3FR4FfK4srqAzmCXdMWDy8iVdwrioDC0ZwVOHUKTnIvF /O0cldurN0dKTf4qMEATkPJnqjrx9ktzFAeTJsxjBxqVOksL59g01uNwuFaRHvqq/YUf FMMjJqaxoRbbhsKNX4EFoHicmdIw8/DgWF62Hvv3dGKGfSTuOdDGS6WlyXqYMCxNfGDE ZHLtyLyvUoOKNtncrsmvn8/hu+V+ey1o2X/Hn6jZFl4CmsrjsNn3r6xO4HtA2oe9P19T VxOQeh/Cw3obxQslbLjsDeRrRW9H6VXC144bQTF8xw+KcmP0L4hYn61X2GsS9GgjFYkc 7OGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=RBpz2fZC/U366DIwH0YEibiccdS5Co/IeF/YPHR6Roc=; fh=i+TqYsrRdQjmmnUlGstgUs/nvKb+wl4l0BHSjvwwEaM=; b=jibdGRtmapf62jbJ+AsC1pzAO9XHH24XMaCGw2x1hLX0LNWV7fQSQQ3WlaHKwHGPpw uoksxFr5HkGrg7bRCufJc6tEdorpc6xfKUgsslfr7fItMaZgQKVbAGn6OIPQb7e2/RAW SD+hQ4a002FmuiFgfc9db12Bn69JlXVkqtS4Xj84gEAwA1COMsd1IYCNtkfcKgAsy6R3 obUs5xKWEeXer55wWI4doYBuq5PBTGQJpBXHpKr7Dn/DnPGBXeeND1x9Q9xIJCBLU6E9 HTdm4Ou38lu/NyTuRCevCvxCkeDnJvLnNlnpaO+TH1T/PIrTLTMzJOcEd+asNiNziErv nbkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1ZGT2PWz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bd35-20020a056a0027a300b006824f156b00si3653844pfb.346.2023.06.30.18.01.26; Fri, 30 Jun 2023 18:01:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1ZGT2PWz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229585AbjGAAbG (ORCPT + 99 others); Fri, 30 Jun 2023 20:31:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbjGAAbF (ORCPT ); Fri, 30 Jun 2023 20:31:05 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8457C3; Fri, 30 Jun 2023 17:31:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=RBpz2fZC/U366DIwH0YEibiccdS5Co/IeF/YPHR6Roc=; b=1ZGT2PWzzLcXtNg6Yf0k41fEEN Ho6yyaJ71YXbaqonH7Wqzihipz34Ev976je8vJ/XBJpPk5aOhIWNIB++Yopqg1eOt6O/V9r6D3CwN pSrf96W09M9gujktOEhjLrIe6jINRM64yBH5XhINEV8HMP0tE5fUKCUAZotLv6zvuGjaN6dvbGbhi 4OArSgW44OM9HpseJ/6FNLcrKuubFc4EhJfX/HePaOLclqlPwYpAUHBcTbT6iHrEi2M6UqNTBR6Q1 7zwYIWyCzxirhrbCeM4RYzj2EmwxHSJtvHLWrUpADIERqfoxceBCyIPgMPwAxjkT6B4OWK9skPCd0 /Q3p2sQw==; Received: from [2601:1c2:980:9ec0::2764] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qFOVw-004qJP-1w; Sat, 01 Jul 2023 00:31:00 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Selvin Xavier , Jason Gunthorpe , Leon Romanovsky , linux-rdma@vger.kernel.org, Devesh Sharma , Somnath Kotur , Sriharsha Basavapatna , Doug Ledford Subject: [PATCH] RDMA/bnxt_re: fix verbs undefined build errors Date: Fri, 30 Jun 2023 17:30:59 -0700 Message-ID: <20230701003059.23064-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770178004845390443?= X-GMAIL-MSGID: =?utf-8?q?1770178004845390443?= When INFINIBAND_USER_ACCESS is not set, the bnxt_re driver has build errors: ERROR: modpost: "uverbs_idr_class" [drivers/infiniband/hw/bnxt_re/bnxt_re.ko] undefined! ERROR: modpost: "ib_uverbs_get_ucontext_file" [drivers/infiniband/hw/bnxt_re/bnxt_re.ko] undefined! ERROR: modpost: "uverbs_destroy_def_handler" [drivers/infiniband/hw/bnxt_re/bnxt_re.ko] undefined! Handle this case by making the driver depend on INFINIBAND_USER_ACCESS. Fixes: 592e8b3226a2 ("RDMA/bnxt_re: Add bnxt_re driver build support") Signed-off-by: Randy Dunlap Cc: Selvin Xavier Cc: Jason Gunthorpe Cc: Leon Romanovsky Cc: linux-rdma@vger.kernel.org Cc: Devesh Sharma Cc: Somnath Kotur Cc: Sriharsha Basavapatna Cc: Doug Ledford --- drivers/infiniband/hw/bnxt_re/Kconfig | 1 + 1 file changed, 1 insertion(+) diff -- a/drivers/infiniband/hw/bnxt_re/Kconfig b/drivers/infiniband/hw/bnxt_re/Kconfig --- a/drivers/infiniband/hw/bnxt_re/Kconfig +++ b/drivers/infiniband/hw/bnxt_re/Kconfig @@ -3,6 +3,7 @@ config INFINIBAND_BNXT_RE tristate "Broadcom Netxtreme HCA support" depends on 64BIT depends on INET && DCB && BNXT + depends on INFINIBAND_USER_ACCESS help This driver supports Broadcom NetXtreme-E 10/25/40/50 gigabit RoCE HCAs. To compile this driver as a module, choose M here: