Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7037555rdb; Wed, 3 Jan 2024 02:23:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGToJMFQBvxtJUGTjbhucjhwU/uB1oq5bhmZ6+itrZzfewyvaQE80S9OjzJS4XlOgchWTvA X-Received: by 2002:a50:ab5d:0:b0:553:c02:60c8 with SMTP id t29-20020a50ab5d000000b005530c0260c8mr11456393edc.41.1704277439126; Wed, 03 Jan 2024 02:23:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704277439; cv=none; d=google.com; s=arc-20160816; b=BJSJa3wM82h5tgiY+vn2MUp+SYVU8nKQl16fo661NzPkQzktf1O3hK28RlOzC8j1sQ ahnRKXEehECE4EkG767uelzpB1Qly21DX5zp/nR7H1y9ACeRyTNJ7ukeb7fXA6eXqtJ4 nlc+oeg97gG4WsLBDoLkFfrxKBWvd0jXkeGWxna13TBHv4UnqpZP7iAML2p2WL6vn6sk LFo62JZfnlz2kRYJPvmHOcSz2hBOAmPfB+sMgvzc9GbSYZVBDIF3gsElFNP3OMTacfBp tRY8V1OvvGQp8ZUBLGMV20h6yeCGNYAt2WXFXYbM8p8I9yMpWi8w4tcNcYczRcJ2PwiG DZng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=1Mu3XTXJQrI+hH/kDHsTMRYRg2v6Ga6ipe+DzDFh+2o=; fh=LLNkWeGv/4NhkVLMO89PAm26aFdAsQIsJ64NyvKFUcc=; b=UTR6gc47xhIxFcV/UyYv87TDxMLwSSKeU0ySOxeRAeJZml149i9p4BSH9t6dz9A7v5 RlqKwZqgPcUcPYeC/NUT7yic3Fcw3KFpU3Nlb0goqdkwxzuGEfOIFNVWt07HO9Lq4//T RJIEbjtvenL+gUDWAw12YIwBVlksZaaemJi2Zak18/mpr9Y0gF69EQlJehj6W7/OfoHQ ByObP/LuPZEgz8ml3k1+ysRHppdL/kuzfn6X3PHHDYWHgGzWLVGc3w2DyngG4fpX0jL1 D+sv9UiykIv118N3U48ETeB70Oigv8CcjZAa6He0gjiJaYV6tN1V4AtYQDPsJ3RUwsvP ZJJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XmIdK5rP; spf=pass (google.com: domain of linux-kernel+bounces-15381-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15381-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w5-20020a50d785000000b00556205dc0e7si3132706edi.231.2024.01.03.02.23.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 02:23:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15381-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XmIdK5rP; spf=pass (google.com: domain of linux-kernel+bounces-15381-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15381-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C8C0E1F2406D for ; Wed, 3 Jan 2024 10:23:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46FCD18B14; Wed, 3 Jan 2024 10:23:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XmIdK5rP" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78D5818AF0; Wed, 3 Jan 2024 10:23:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04FB1C433C8; Wed, 3 Jan 2024 10:23:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704277425; bh=z0qY/gX0M8RB0LK5KbRuBi5q9cGMDpSG9tSCAaQIxfw=; h=From:To:Cc:Subject:Date:From; b=XmIdK5rPNDInU6AUMdojnCYK4XltdzDK2PAy+WwMqmO2Ow9WN1A4nLGeX53uW9Vmp +VSdfmqMquJZSS5SS1F3DqS6PbzIwI2F9inEiSZDUqLfgQBP3DIlTuE8sdxSjMKuAP gx+iMiwjsgmrVX46ouGskrTDRkxN1vFUuq+7v2JmlgJ0+NEzeVa0iv2F1rGkyydYgE VnBxPgVoizXiy3Uk1WLXJrod5GESjpxfyrOdVTwRUrV6jrbCGMPH5EQcdz7qXIQxrq U7HOAzMOYJJJtsSNZfW8o1JpqRwLNjvKCBh5NKmAYToxxwHl9MvWk5GsM0R1psTsMZ /rUzbv7/5VrCQ== From: Arnd Bergmann To: Michael Chan Cc: Arnd Bergmann , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andy Gospodarek , Pavan Chebbi , Somnath Kotur , Kalesh AP , Randy Schacher , Vasundhara Volam , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] bnxt: fix building without CONFIG_RFS_ACCEL Date: Wed, 3 Jan 2024 11:23:11 +0100 Message-Id: <20240103102332.3642417-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann A recent patch series generalized the filter logic in bnxt to no longer just be used for RFS, but it now fails to build when RFS_ACCEL is disabled: drivers/net/ethernet/broadcom/bnxt/bnxt.c: In function 'bnxt_cfg_ntp_filters': drivers/net/ethernet/broadcom/bnxt/bnxt.c:14077:37: error: implicit declaration of function 'rps_may_expire_flow' [-Werror=implicit-function-declaration] 14077 | if (rps_may_expire_flow(bp->dev, fltr->base.rxq, | ^~~~~~~~~~~~~~~~~~~ Add back one #ifdef check around a call to the missing rps_may_expire_flow() function. Fixes: 59cde76f33fa ("bnxt_en: Refactor filter insertion logic in bnxt_rx_flow_steer().") Cc: Michael Chan Signed-off-by: Arnd Bergmann --- I don't know if this is a correct fix, only checked that it is plausible and that it does address the build failure. If a different fix is needed, please just treat this as a bug report. --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index 827821e89c40..83a97c65b728 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -14074,6 +14074,7 @@ static void bnxt_cfg_ntp_filters(struct bnxt *bp) if (test_bit(BNXT_FLTR_VALID, &fltr->base.state)) { if (fltr->base.flags & BNXT_ACT_NO_AGING) continue; +#if IS_ENABLED(CONFIG_RFS_ACCEL) if (rps_may_expire_flow(bp->dev, fltr->base.rxq, fltr->flow_id, fltr->base.sw_id)) { @@ -14081,6 +14082,7 @@ static void bnxt_cfg_ntp_filters(struct bnxt *bp) fltr); del = true; } +#endif } else { rc = bnxt_hwrm_cfa_ntuple_filter_alloc(bp, fltr); -- 2.39.2