Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26209577rwd; Mon, 3 Jul 2023 06:53:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlF/qGPIITzreh0l5AtB6rohmX7vnkFYi0sSeS09WeHctKAYqmHmBbo7QiNg5mlIroBV/Jdy X-Received: by 2002:a17:903:1251:b0:1b3:c4c1:ec4f with SMTP id u17-20020a170903125100b001b3c4c1ec4fmr13529602plh.37.1688392430734; Mon, 03 Jul 2023 06:53:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688392430; cv=none; d=google.com; s=arc-20160816; b=ubXu5wRFbBmUSPobldk/nGCz7mUXShqeFarUx/DDXb7OG/bjKtQEul8HqItPXUczLh DMlcoQWYuh15xH1bSzr9RN/KZAA4MWDNUstB7ceN/zmRzD0NWZJRHfCkEnGFPvWj+ok4 ZTSW7i67zNUWaNUzVd9GPLMk6nkRiF7ExK5N1XfmJn42B94ABN4ph5lHIWDE41UYoj2u qFYSNUdXsxiiYQLOkJHeOuCDeHTF5B7e/UpEw6SFjM2I2Vg+pe2Tr/Mmope9zhzRL7Yi 88LYdBiJHOzG/mTG5LS4dmXYPJjri0C2GE6MV4i8jgJYSbAhfy00J3cDfSJp9Oxo+qlI F1Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zL8SuQ31xIddNdB9HUpwRFIOdnxEkvJVPZ0mhYeFiwk=; fh=EuuhuS3ABvzPwwivPeccK6e3nRuUaIZWSNvSP6gn2pA=; b=bR1KfXAhbiujM+r33OGmWf5/xSZ7IaRJsrf62PD/0BNwwWGHjdaSZGgp1zndL/+SoP roqgLH18G5b3lUJtKxQXd/u+XvLKlZyVA9zKfTLvKQPuMcMb8Zwgr91d20pI2wRNr3Az m2ZThqewnonSNlW6FJO2J8Whj6OhrTWXwwXyB55QYEYXwUrl0yBepOR2gY5z22fLMQPy ifCXdRYGw9mkF4g1ZxBC2M8fXLZIefHEkvlTVqlBv1noEfEOVnl4Nu+EKNbcl+Uv1d9O 4ESe+uCAwFzdJ9ahrSgnF/EQZ74S4NCl1sWQeGuDjpQpxPQ/UuTU7mPjcNgNKaf8vpji O9zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uZl4Jdr9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020a170902d2c800b001b85ac4a677si9190231plc.635.2023.07.03.06.53.37; Mon, 03 Jul 2023 06:53:50 -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=@kernel.org header.s=k20201202 header.b=uZl4Jdr9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231294AbjGCN2U (ORCPT + 99 others); Mon, 3 Jul 2023 09:28:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229894AbjGCN2T (ORCPT ); Mon, 3 Jul 2023 09:28:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63980D2; Mon, 3 Jul 2023 06:28:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0033560F29; Mon, 3 Jul 2023 13:28:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03F01C433C7; Mon, 3 Jul 2023 13:28:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688390897; bh=9MfmNkXtRnPAz4JajXu2pnpfR+Wd/raHkYtmI3EjdfY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uZl4Jdr9tZLbI4xa7wVF+DsqvzqJRLQWX9slxburg1Eoq42DEtQq5t99LJEEqDUBK HKLVMT4/dNuNaNBNwWIpDRILAMxqIHj7V/re+O/WbQI9jyzM0KNSwIMGNeDQfX2DTu R3/pAOoKTc4XxU1gGnsQRRmj7SuMu8hOwDZDk4pvp/f9gOYz+Ydd4gwMPzSo7sdG2a KC5g0UNVU7p1Gz35OupBjiDHUU8lQ7waPDBz45RzFAegKV8ex4HmcKEaV53LRKse01 w/xex63xJKvf22W1O15doKU5zaHlXO727l7ChD9KFm99HDcu+jxVUl2vxdbxYrlPBT JRphIBnhyAGdg== Date: Mon, 3 Jul 2023 16:28:14 +0300 From: Leon Romanovsky To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, Selvin Xavier , Jason Gunthorpe , linux-rdma@vger.kernel.org, Devesh Sharma , Somnath Kotur , Sriharsha Basavapatna , Doug Ledford Subject: Re: [PATCH] RDMA/bnxt_re: fix verbs undefined build errors Message-ID: <20230703132814.GA32152@unreal> References: <20230701003059.23064-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230701003059.23064-1-rdunlap@infradead.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Fri, Jun 30, 2023 at 05:30:59PM -0700, Randy Dunlap wrote: > 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(+) I liked this variant [1] more as bnxt_re driver can theoretically work without INFINIBAND_USER_ACCESS too. [1] https://lore.kernel.org/all/20230703113025.356682-1-arnd@kernel.org Thanks