🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #218

Re: [PATCH net-next] sfc: fix stale kernel-doc member names in net_driver.h

#218
From: Simon Horman
Date: Wed, 07 Oct 2026 15:22
59 lines
7937 bytes
On Sat, Oct 03, 2026 at 11:24:41AM +0530, Arnav Kapoor wrote:
> Several kernel-doc comments in net_driver.h describe struct members that
> have since been renamed or removed, and the EFX_MAX_FRAME_LEN() comment
> is separated from the macro by the EFX_FRAME_PAD define. kernel-doc
> reports:
> 
>   Excess struct member 'state' description in 'efx_channel'
>   Excess struct member 'state_lock' description in 'efx_channel'
>   Excess struct member 'indir_table' description in 'efx_rss_context'
>   Excess struct member 'irq_rx_mod_step_us' description in 'efx_nic'
>   Excess struct member 'tx_queue' description in 'efx_nic'
>   Excess struct member 'rx_queue' description in 'efx_nic'
>   Excess struct member 'extra_channel_types' description in 'efx_nic'
>   expecting prototype for EFX_MAX_FRAME_LEN(). Prototype was for
>   EFX_FRAME_PAD() instead
> 
> along with "not described" warnings for the renamed members.
> 
> Fix the member names to match the structs, drop the entries for members
> that no longer exist, and move the EFX_FRAME_PAD define above the
> EFX_MAX_FRAME_LEN() comment, documenting its @mtu parameter.
> 
> No functional change.
> 
> Assisted-by: Claude:claude-opus-5-5
> Signed-off-by: Arnav Kapoor <kapoorarnav43@gmail.com>
> ---
> Comment-only change (plus moving a #define above the comment), checked
> with scripts/kernel-doc; W=1 build of drivers/net/ethernet/sfc/ shows no
> new warnings.
> 
>  drivers/net/ethernet/sfc/net_driver.h | 16 +++++++---------
>  1 file changed, 7 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethernet/sfc/net_driver.h
> index 3964b2c56609..76b48f96ec62 100644
> --- a/drivers/net/ethernet/sfc/net_driver.h
> +++ b/drivers/net/ethernet/sfc/net_driver.h
> @@ -467,8 +467,6 @@ enum efx_sync_events_state {
>   * @irq_moderation_us: IRQ moderation value (in microseconds)
>   * @napi_dev: Net device used with NAPI
>   * @napi_str: NAPI control structure
> - * @state: state for NAPI vs busy polling
> - * @state_lock: lock protecting @state

Hi Arnav,

I agree that neither state nor state_lock exist in struct efx_channel.
But while checking that I noticed that it seems the documentation
for @busy_poll_state is missing.

Could you ask your AI friend to audit that aspect too?

>   * @eventq: Event queue buffer
>   * @eventq_mask: Event queue pointer mask
>   * @eventq_read_ptr: Event queue read pointer

...
Technical Details
Message-ID: <20261007152205.GU83879@horms.kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342389-linux-kernel-netdev=dewy.ru
References: <20261003055443.144554-1-kapoorarnav43@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342389-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next] sfc: fix stale kernel-doc member names in
 net_driver.h
Date: Wed, 7 Oct 2026 16:22:05 +0100
Organization: Usenet Network
Message-ID: <20261007152205.GU83879@horms.kernel.org>
References: <20261003055443.144554-1-kapoorarnav43@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="673319"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:EI6TMzLEyzJ6tYw0NxvIkZ8wyY4= sha256:Tqaa6l6ZHrno+T/RwjSVAk48WncHz9t55oPv1W9Nsik=
	sha1:oUecz2jqtoJjk9uJ2y3/liyIyGU= sha256:08rtsyTWLkJ7hJw/NqXKfqaTejM/HZxeVutJtHVIRFI=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 0B00610F1A1; Wed,  7 Oct 2026 18:22:28 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.741
X-Spam-Status: No, score=-3.741 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.241, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id wzuYI1u3LmkM;
	Wed,  7 Oct 2026 18:22:21 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-342389-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 23D6E10F19D; Wed,  7 Oct 2026 18:22:16 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sto.lore.kernel.org (Postfix) with ESMTP id BBF4460174F; Wed,  7 Oct 2026 15:22:15 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id C60D34B2032;
	Wed,  7 Oct 2026 15:22:14 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aJ1yW1PD"
X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18])
	(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 E85683CC323;
	Wed,  7 Oct 2026 15:22:10 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791386534; cv=none; b=GBcce3NblT8nz5Blaxrctkjgi5tSlwbcZiEy2BmUxefFZew57LDBlzK44oC7v7c4HrQveAd2rYsAH5xixPqnKsjzjK60vauYCDuNoinr+MpWXrR9U55Kz0WdNfIU8x00uPg7solsrZyMKs0awoeSye318Mj5DCgoZQO2edMoNDA=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791386534; c=relaxed/simple;
	bh=xneb9de67g/zQpN8KvDJVfJi8Ni6Shft0/cTpp/tlfw=;
	h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To; b=p2Gsv+klzdo18hEjv8twpNAA5tgM37Dirs5qs9+PKzQYWQmmlB5LmPeDgpZ/yNY/YJy6oPDKy80/xEMQdWoJwprz2nBATxLMjx1Hl88ozOy6irBlyd0Gn69YvEcZS9G9LeVp0+uXnQqW9lKCSduL82uHHAfSOVtcZIVPt6sW++M=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aJ1yW1PD; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 167071F000FF;
	Wed,  7 Oct 2026 15:22:07 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1791386530;
	bh=jgeXfWY/7QFIRQsY6WO+2PJ/DzNrLa7cA9ZWSAgL5Y8=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=aJ1yW1PDfpO28AIbMX1jNLKh+xQq6LxBLKFrUv42Y05G6RBi7JwGuIweIHppJ1NMG
	 T6JM3pkDWis9+vykuou3utRuXFT0kYrWTCPZf/jOwrx7Zdj9Dqaq+4GFnNVyqFRolw
	 AukOf7O8vAoAkgeNvh1ekOprOfz4ZZ6dVSwqMvkWHxR6yl/DNz7/MZSVaDjkVYuWpj
	 WL3Sf+JEU/HLucD1V+2QezbMuAKqKLsfgHalO4oj+LjQD1a/y1q2jalaCAlOkM6YXY
	 bAKVnkVfs4mM5TvNea9x1DZP3S3EZOqAKRCZPn3y6hme2R7/P7bf26KaJPks31huZ6
	 tBypkr6mssP6w==
X-Cc: Edward Cree <ecree.xilinx@gmail.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	netdev@vger.kernel.org, linux-net-drivers@amd.com,
	linux-kernel@vger.kernel.org
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <20261003055443.144554-1-kapoorarnav43@gmail.com>