Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp298050rdb; Tue, 19 Dec 2023 18:06:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGYHQSzmnw+Dgia44JWflURGHkmUGH42At/OpS8nKMIObRlc8NjPAtU52pCxGNPiCMad5lR X-Received: by 2002:a05:6871:3296:b0:204:e8f:3db5 with SMTP id mp22-20020a056871329600b002040e8f3db5mr87351oac.72.1703038013281; Tue, 19 Dec 2023 18:06:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703038013; cv=none; d=google.com; s=arc-20160816; b=JVlgey0vKc3F3tmNLHgQVBErBdfUDW2xuSqW1LBX562vrhqDpVqfiIa2/4zTNNO5HB cxi3ypm9aKteetsf91ALtcVf0iBUWGPdnuciHvwI9cm4m2428ECL+gn865GVqBV5eEG1 60lRzybtSPngLX/dv845G2doBE48SuLwEQoZgMPAdEybV1rH8bF1e8p0BoMmWc1V72W5 Pq8wo9AaMC8Gj1F3qW5Z2hm/MhwWLwlkkKa6S+yRlBShJHn6oNVfb5r75Y8zbFoZ1vbE irLMQNceoEcMiV8sNA81PN4oLA3mJnIj7uZzcAYeX9w+Vok+MgPL/HMfi0Gr34xYcq3z EpWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=qya6je0ihv2fYYW7NmvzCuKXAHEO5f9H1K55chikLeg=; fh=9QrbSu3DI6JTnmTyXHehNzAn6glyhmkzmF8mlz47W7U=; b=ui5Z2YTgSiv7I/InjfX4xITNxGPFqpHYTzL4mkBn3lTmO22SOtJo/nGT+YSTX4H8c5 6MriLX1/mW+AR+7y+gfwi39jiZ8HRPPwO35kw93I8vyEzjDTNnCLJBX2KEL6MzPaq2UE zGfuFgwQdW6jR2fv3XfHDxWVJl4pfSvDU763iH8aAM4NnInZxc2u47YLCRAdnNZQM0Pl XTUvAn74NtSwEoaH8LUxNri3vYrktyJETgxDo5p29vZBnILaJti0EsGhGzqTKPhpACMj rzDzWa0dtgNRJq3gyiwJ8w8e6pd4WgnkFA7+e/5y7D/1K34ONq2oerZLJe7aJ39TcgiQ 80Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=jaNCwrYJ; spf=pass (google.com: domain of linux-kernel+bounces-6279-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6279-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z2-20020a63e102000000b005c6eb3502bfsi20717987pgh.309.2023.12.19.18.06.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 18:06:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6279-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=jaNCwrYJ; spf=pass (google.com: domain of linux-kernel+bounces-6279-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6279-linux.lists.archive=gmail.com@vger.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 994FBB24951 for ; Wed, 20 Dec 2023 02:06:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D71898488; Wed, 20 Dec 2023 02:06:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="jaNCwrYJ" X-Original-To: linux-kernel@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 9EA98BE4C; Wed, 20 Dec 2023 02:06:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=qya6je0ihv2fYYW7NmvzCuKXAHEO5f9H1K55chikLeg=; b=jaNCwrYJINLKkNUD/DMaMQLTq+ TXriMQsriA6uYn/PlkbsrJWVwyfUNNVQe7KjdOlXDG7I+PgNnrKqq5VpbkEZwwT69p5asd7Xa2h6E NHOgfLi08rjkIpS3svfxj9JL1oCq9ops8eGDcfYtQWDdQ+VsCNDTMSv6pjdkcL+xuUjfxkF12fWn/ txOPHFTnlzBYfNFDeFlxobQ+KO+oO6SMR2gpKxaZUlln9bYGHhuQXQWahWag2ullhz7xlArLyS3+e wJXb0XapysHLF1uhindIJUPE8w7N8LTHOLMtFWGsVDCBKQQhV72PgfS6efUk7hetby2TN/C4ntPGf V9GP1YNg==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rFlym-00Fx9I-0K; Wed, 20 Dec 2023 02:06:36 +0000 Message-ID: Date: Tue, 19 Dec 2023 18:06:35 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net] ethtool: reformat kerneldoc for struct ethtool_link_settings Content-Language: en-US To: Jonathan Corbet , netdev@vger.kernel.org Cc: "David S. Miller" , linux-kernel@vger.kernel.org References: <87zfy5g35h.fsf@meer.lwn.net> From: Randy Dunlap In-Reply-To: <87zfy5g35h.fsf@meer.lwn.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/19/23 15:53, Jonathan Corbet wrote: > The kernel doc comments for struct ethtool_link_settings includes > documentation for three fields that were never present there, leading to > these docs-build warnings: > > ./include/uapi/linux/ethtool.h:2207: warning: Excess struct member 'supported' description in 'ethtool_link_settings' > ./include/uapi/linux/ethtool.h:2207: warning: Excess struct member 'advertising' description in 'ethtool_link_settings' > ./include/uapi/linux/ethtool.h:2207: warning: Excess struct member 'lp_advertising' description in 'ethtool_link_settings' > > Remove the entries to make the warnings go away. There was some > information there on how data in >link_mode_masks is formatted; move that > to the body of the comment to preserve it. > > Signed-off-by: Jonathan Corbet Reviewed-by: Randy Dunlap > --- > include/uapi/linux/ethtool.h | 27 +++++++++++++++------------ > 1 file changed, 15 insertions(+), 12 deletions(-) > > diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h > index f7fba0dc87e5..50253287c321 100644 > --- a/include/uapi/linux/ethtool.h > +++ b/include/uapi/linux/ethtool.h > @@ -2128,18 +2128,6 @@ enum ethtool_reset_flags { > * refused. For drivers: ignore this field (use kernel's > * __ETHTOOL_LINK_MODE_MASK_NBITS instead), any change to it will > * be overwritten by kernel. > - * @supported: Bitmap with each bit meaning given by > - * %ethtool_link_mode_bit_indices for the link modes, physical > - * connectors and other link features for which the interface > - * supports autonegotiation or auto-detection. Read-only. > - * @advertising: Bitmap with each bit meaning given by > - * %ethtool_link_mode_bit_indices for the link modes, physical > - * connectors and other link features that are advertised through > - * autonegotiation or enabled for auto-detection. > - * @lp_advertising: Bitmap with each bit meaning given by > - * %ethtool_link_mode_bit_indices for the link modes, and other > - * link features that the link partner advertised through > - * autonegotiation; 0 if unknown or not applicable. Read-only. > * @transceiver: Used to distinguish different possible PHY types, > * reported consistently by PHYLIB. Read-only. > * @master_slave_cfg: Master/slave port mode. > @@ -2181,6 +2169,21 @@ enum ethtool_reset_flags { > * %set_link_ksettings() should validate all fields other than @cmd > * and @link_mode_masks_nwords that are not described as read-only or > * deprecated, and must ignore all fields described as read-only. > + * > + * @link_mode_masks is divided into three bitfields, each of length > + * @link_mode_masks_nwords: > + * - supported: Bitmap with each bit meaning given by > + * %ethtool_link_mode_bit_indices for the link modes, physical > + * connectors and other link features for which the interface > + * supports autonegotiation or auto-detection. Read-only. > + * - advertising: Bitmap with each bit meaning given by > + * %ethtool_link_mode_bit_indices for the link modes, physical > + * connectors and other link features that are advertised through > + * autonegotiation or enabled for auto-detection. > + * - lp_advertising: Bitmap with each bit meaning given by > + * %ethtool_link_mode_bit_indices for the link modes, and other > + * link features that the link partner advertised through > + * autonegotiation; 0 if unknown or not applicable. Read-only. > */ > struct ethtool_link_settings { > __u32 cmd; -- #Randy https://people.kernel.org/tglx/notes-about-netiquette https://subspace.kernel.org/etiquette.html