Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7208324rdb; Wed, 3 Jan 2024 08:03:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IETD4VPs2IxKmgTVmFmTk4zP39vSJ+8tr19NXkjMQ4X2+o1/AAmRhhI6Mgi4TWeQK+QuRGA X-Received: by 2002:a05:6a20:429c:b0:197:6912:fa13 with SMTP id o28-20020a056a20429c00b001976912fa13mr1579060pzj.56.1704297807498; Wed, 03 Jan 2024 08:03:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704297807; cv=none; d=google.com; s=arc-20160816; b=gZpoeh+OSk42q92l07iKQGmIhXbWoIzrtu0g6B9n0lK4ENLWx1TSY2b/+2tL/OHBsk JFOigNRiRIIcoe2sKEPlHZETQAkGIyoHjldCPRH+9ryFEuXUEb50/ASqUyQ2Og+yIfas silwFISRuPu5tH/bZ8zxfKj+ieNpwS+QIt6MMffQCmRkq2O+19B5ez1hwTpPAclOtZ5G le+ZB7IaSb9oNnaeZfs/yYgpVdsWi334uiUvHgs4EsZ4iajsAt7p2RNEf/mngbgAcbcA +sGpsFR/hIomt7ZYDKl1/jxg8+BVn7GYElvaFJNLm7kNttkGCJXd/Cw0PuHu3EYpAHCx DArg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=zerdII11PcHIs2IOb7NkEzCQJgSakeLaHwCLP1gYgms=; fh=70sZ9F/YjClDJcR36jyFCbPsaDsrGjFP6/kqPNItBE0=; b=JZLDbIOZqECbMqOndfE8cno9PhS6OBVaF8bImCdyGcsTKNZIgKSpoFghd+0uJgMLoL RQbMqNY7y2Pp2JpXF7YDW9DFhhGRfD3Adj2gSAtDeMPL/5VjYgB5RMFCkPKGFRhMqkeS b/+zlzKCNqqrDZCyaboVla/TVgSssoCaydW1nojt2LYX2Dw5+KE6CJQD1S/VcEGXmu3Z 7XPZqOuvfoKVTvvB0z2UXLP9pN5+TwoA2fjqyiBYDPc8meLAdpym8A9byqdJrciHYvcz 8x/5/eL8p654+ph8Yg8fLdGFjOzlzv/AvRYSm59IrTiAP6E0taZO8/xWAwjScFBFlpJQ rUsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=AwqK80hX; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="i/bzzaEj"; spf=pass (google.com: domain of linux-kernel+bounces-15730-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15730-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b26-20020a056a0002da00b006d9af054846si17212329pft.305.2024.01.03.08.03.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 08:03:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15730-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=AwqK80hX; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="i/bzzaEj"; spf=pass (google.com: domain of linux-kernel+bounces-15730-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15730-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2B03F286483 for ; Wed, 3 Jan 2024 16:03:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D0A21C296; Wed, 3 Jan 2024 16:02:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="AwqK80hX"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="i/bzzaEj" X-Original-To: linux-kernel@vger.kernel.org Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (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 CAC4A1C287; Wed, 3 Jan 2024 16:01:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id D20453200A33; Wed, 3 Jan 2024 11:01:56 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Wed, 03 Jan 2024 11:01:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1704297716; x=1704384116; bh=zerdII11Pc HIs2IOb7NkEzCQJgSakeLaHwCLP1gYgms=; b=AwqK80hX8Ajw0lFy/L1TkJ5Von 5+iiTs9j/hclVmOY50q5k0ZOTxmsMEzUwlMLLRlg8AXXmjb7In+KX/JGsQzlfi5i dRhBgRVI7Thexhx/47yjvRt8WKruTxYYGFOX239D2uJ4HlgVlc2r91WYRvatG9f/ IIlfoPNbUcOKkurMhvhTwmWUt5cL2pajC01yqNpGxgziDB+VR24ZcBh6GOlh+9yK diGvxwHaGb3yxR/qvC33r3mWvLZyt0QVkLQ6Bzw5Tf41o5n1qx76Ay1P3ivPrxlJ F3k4IvP7xva/tKUj5zvwaXeHowxHPyfHuGCIznovEZOnEbDZpojNXdjkNXpg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1704297716; x=1704384116; bh=zerdII11PcHIs2IOb7NkEzCQJgSa keLaHwCLP1gYgms=; b=i/bzzaEjGwwHLBGbfSddu3ZMkdzfPRoZFYbln9O2p0OL 916OvtNspweUDjeighbfB69ezfIjkQHLkZVbMJUmMlJNuoMGkvB8gp+fRMB84HRO 37Tllb6Ly7S4cm54yDrPNMR1P5rE+l/m6TcQhmkECPtSfcwt7PuDsr9Az00qgcie GEZrlFCMTfnQE2TxZXc+I2FwCKtoglNg/nfnbT8a4Du5kd/G322KR3vnb1eWRXX7 bmq90tByD76oUTvSrCzkWDEuK2frSOpprKj9O3/m6uwAUuzmRYcZUriVRLDw+/i8 KHr+LJiGa4dENe4MZKvwK3DjFKoZHh2dxnclWlrihA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeghedgkeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepgeetiefhjedvhfeffffhvddvvdffgfetvdetiefghefhheduffeljeeuuddv lefgnecuffhomhgrihhnpehprghsthgvsghinhdrtghomhenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id E469DB6008F; Wed, 3 Jan 2024 11:01:55 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1364-ga51d5fd3b7-fm-20231219.001-ga51d5fd3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <557cfaec-6721-4409-83c9-6a60742a5021@app.fastmail.com> In-Reply-To: References: <20240103102332.3642417-1-arnd@kernel.org> Date: Wed, 03 Jan 2024 17:01:35 +0100 From: "Arnd Bergmann" To: "Andy Gospodarek" , "Arnd Bergmann" Cc: "Michael Chan" , "David S . Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Pavan Chebbi" , "Somnath Kotur" , "Kalesh AP" , "Randy Schacher" , "Vasundhara Volam" , Netdev , linux-kernel@vger.kernel.org Subject: Re: [PATCH] bnxt: fix building without CONFIG_RFS_ACCEL Content-Type: text/plain On Wed, Jan 3, 2024, at 16:46, Andy Gospodarek wrote: > On Wed, Jan 03, 2024 at 11:23:11AM +0100, Arnd Bergmann wrote: >> 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. > > Are you using a kernel config with CONFIG_SMP=n ? That was how I was > able to reproduce this. I saw this in two randconfig test builds on 32-bit arm, both with SMP disabled, though I did not expect that to make a difference. In case it helps, this is one of the two config files: https://pastebin.com/raw/uxHEXzG2 > There is a good oppportunity to clean this up a little better. When > CONFIG_RFS_ACCEL is not set there is no reason to even have > bnxt_cfg_ntp_filters included in the driver build. > > I'll talk to Michael and we will post a fix for this. Ok, thanks! Arnd