Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp23085431rwd; Fri, 30 Jun 2023 18:01:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7zjawXZoHcS817jklUa8NSqBvl3Bme3+mdxx/xmEbHqy9+mtfroPWGH0tXR4Q/1/Y3IZYo X-Received: by 2002:a05:6870:d14d:b0:1b0:2f70:15a5 with SMTP id f13-20020a056870d14d00b001b02f7015a5mr5104358oac.52.1688173279729; Fri, 30 Jun 2023 18:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688173279; cv=none; d=google.com; s=arc-20160816; b=WHz4CqadX8tyb3ZtZ2IRZ+WLabVgvOO/2L8zckWOvrBJaAYRmOmgeoQiPfsjZw5UhX RL2CwOpg5wdVsLUu4V5yWRmKCSyL70yO4iEezdtBJRQ+7aqP0ByT/vAGc5ELRh+0vSr+ mMuXbDFni2ofElzAiA6aMuc0ZBmn50op58um/ntL/hcGROpGnIRsQwC45Lr81m8UVtaI j+18KC1T1kWKya1TMAyrK0ebnwYawQU7Tgrf7rfF2maT3oNo1YgDBQe97sOnsFrLo9uz xk+b3GeYxjOZsHwy0n+nCiIcLnrwXPn1CWYv26tqV+sKujCTUve/ULWVqN+B2idsXXRX xpTw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d6-20020a630e06000000b0055731f11410si13496647pgl.470.2023.06.30.18.01.04; Fri, 30 Jun 2023 18:01:19 -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 S229552AbjGAAbG (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 Content-Transfer-Encoding: 8bit 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 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: