Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp249724rdb; Tue, 19 Dec 2023 15:55:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IFaqV4pkh82JTmtWlHO43nBD7hb0CnJDo6dUTnlfPIBWte0d0/IQWwm8aVFW1oCaAX5pY+/ X-Received: by 2002:a05:620a:2941:b0:77f:a34b:41ff with SMTP id n1-20020a05620a294100b0077fa34b41ffmr12198396qkp.124.1703030149866; Tue, 19 Dec 2023 15:55:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703030149; cv=none; d=google.com; s=arc-20160816; b=ShmN1lhesoVFLuLVi6+iEUBYmqmrxu6pLC9AmEkI52ku9Ue6rSYHVIubg2n4Ba/uci JC0hk8dlcYb7/rZkbmNjKOLOjFYGYiuAoEyOpC9CC6+cCsyS/THONUEdQ5vDFc4+44Xk ZV99GuhT16IsSNsdxTRbetWNToyIqj0Pno1z29rCR0BrWhhhQrJ8oBp4vp0NhZimmTz7 ZvFDw2yhWvF7PKXN/qeTTj29Tv8ETdDST6vC77Q1S6zb01I8jPpqNAuyZ0iXSBXhcUYG TlwiUopktRopK5TPyC9hyrIvI3XbV8XD9ASMB4p+zYFH39PqPWW4nAYktVwM4MMrAbQJ tfCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=EXq6rWek7Ihcua6GQcHpZR4rHtTXCSQsjBPcDo0bgYA=; fh=QcCgqp1EGUpakgX/aNX+FPZPLAsL9uRw1/WTPyW8gVM=; b=gF6us/s0diYLwLKUKhZ9sXl4SUZPvtGrb97sJzuHQzT0oPabvmmP49acoPoJWCZLOi IKvLW1rzknSM4HmAfGPtULkHMgjYf0Vw1pbxNDz5MS5kw3bUShXWkxX1y9cbHWpWqzMB dXPfefBcpwf0egNPYaqMcl7+BVhfEBaGm7S2IzUFMQAibjSN0m+I2hjNmWuDXQpAfPBx 8DCoRCyR8hBA2q4LJm6neDBeTJpFYac7dqAZcTPlkSVboIVp4GdZbb1Q3gkffF0UNdRd jfiKkNg9wBW3VlSf5ozzHAQvxhNSLMuMXGM7fO8MUdQBZBG9Stshp4GmazlfwHhCCRwr KIUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=BZzeEuPP; spf=pass (google.com: domain of linux-kernel+bounces-6118-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6118-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dz13-20020a05620a2b8d00b0076d81c85ecesi11614138qkb.723.2023.12.19.15.55.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 15:55:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6118-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=BZzeEuPP; spf=pass (google.com: domain of linux-kernel+bounces-6118-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6118-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9CDF71C21BE9 for ; Tue, 19 Dec 2023 23:55:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 55F913FB0B; Tue, 19 Dec 2023 23:55:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b="BZzeEuPP" X-Original-To: linux-kernel@vger.kernel.org Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) (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 2773440BE0; Tue, 19 Dec 2023 23:55:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lwn.net Received: from localhost (unknown [IPv6:2601:280:5e00:7e19::646]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 4E3632AE; Tue, 19 Dec 2023 23:55:32 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 4E3632AE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1703030132; bh=EXq6rWek7Ihcua6GQcHpZR4rHtTXCSQsjBPcDo0bgYA=; h=From:To:Cc:Subject:Date:From; b=BZzeEuPPsI1uDYd4TlY8Q+Euo89z8zsKuR8O9P5rl5Nk0qXX8A013GzquNUTlX4Y5 Z5/w5Tgj2Vx/zD5SGfkwONokhWWeZbYSLkuBlpozS5itGfdVPDz4y2oH8MPijx0x/U qKF2CITgydhq2Av12VdjiHHVlxZPv8MVuzaSiTwHzxPLdYAZkAPOIWLaYF3Oex0tLs WVGOcse6sh8F/mTtWovthNwb7dn3mhafhbc5p0HVBAmRSv3IofcLaYit6+BdxNK7KT rHiholnf3XHH6EKqg4+8jKwjMxR/wxkQ+M5yuPqewPDSFuxIqnAYwuzh6Fq3O7CoC2 viWeEzJ14cMEw== From: Jonathan Corbet To: netdev@vger.kernel.org Cc: "David S. Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org Subject: [PATCH net] ethtool: reformat kerneldoc for struct ethtool_fec_stats Date: Tue, 19 Dec 2023 16:55:31 -0700 Message-ID: <87v88tg32k.fsf@meer.lwn.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain The kerneldoc comment for struct ethtool_fec_stats attempts to describe the "total" and "lanes" fields of the ethtool_fec_stat substructure in a way leading to these warnings: ./include/linux/ethtool.h:424: warning: Excess struct member 'lane' description in 'ethtool_fec_stats' ./include/linux/ethtool.h:424: warning: Excess struct member 'total' description in 'ethtool_fec_stats' Reformat the comment to retain the information while eliminating the warnings. Signed-off-by: Jonathan Corbet --- include/linux/ethtool.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index 689028257fcc..77c7a9ac0ece 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h @@ -409,8 +409,10 @@ struct ethtool_pause_stats { * not entire FEC data blocks. This is a non-standard statistic. * Reported to user space as %ETHTOOL_A_FEC_STAT_CORR_BITS. * - * @lane: per-lane/PCS-instance counts as defined by the standard - * @total: error counts for the entire port, for drivers incapable of reporting + * For each of the above fields, the two substructure members are: + * + * - @lanes: per-lane/PCS-instance counts as defined by the standard + * - @total: error counts for the entire port, for drivers incapable of reporting * per-lane stats * * Drivers should fill in either only total or per-lane statistics, core -- 2.43.0