Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp299149rdb; Tue, 19 Dec 2023 18:09:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IF42MCz6Wa9JmWw+OVg+CGtDRHN2LdsfcDz90W+yxXqvSZBZQex0xJBVAaPeEzaNb6zpdc5 X-Received: by 2002:a05:6358:281e:b0:170:3f39:266 with SMTP id k30-20020a056358281e00b001703f390266mr23299782rwb.14.1703038192443; Tue, 19 Dec 2023 18:09:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703038192; cv=none; d=google.com; s=arc-20160816; b=JU/2MwLuafGvJ9KLFUAh08ZiVwCjq0Wl0LAZ/RLBo0JjTCtj0Tl7YFTQdwawf+H3AO 0rarVTlhHggvXZN6U2TWFB09RhCUHXLSk1zbja60fjhUH6EGEwkatt8l7A0ej6gAon8E +6e0lmQH4m5sFj21eni7U/qboT2br1lsNHANt4Y7ezi98dku/SwwVKpSJ7cy+E5Ws37/ 4xRsar15WbwjumnZr6IC2i6/j5LO1ku8FnmEq37IuuHsnqJQJa6GM0UtMlRLPwMOyRMJ LWOzfJRsDSeV+dp3TC73FigtDYu58ZZ54PNI4RFf9xGi0dOaAapUDaRtMW0xoskFi6Ul jLFg== 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=0uJT5gTIpGFqVn5BDA+jA6ZegGHjTIiqXuV3kQHOKvc=; fh=VRt+r/V2gwkaByiwxdR//xcuSC+EBsrEUl8Jyqtbmxg=; b=Atk60WJEOA0QEK+nZjCEqZFGlRKnGYntFc1XdsTY17fNjBQIwwbUHa6yWDzVgcsBY2 XyncQX8Vme6kqXQaFQU6GJ8fuzmLD4L9g3E2Xr5lLecyR0c74JiMZCp7HjONY4tV7Urm uDFQXc/6y9ITM1csKzQUGGxpbjoYNq4xDdJBbj3uRyy1mX6AuVsTKvt150/uVBpPfRx2 NUB/DGto4dL6F0W1yoozwbC2KCK7DSS+BSkbCBOXjq30IckMAZA7fKpI+mYaPNomVVFA difbcb30VKp076GTdFBbiPIVXNGt9paujxWq7j3JqQf/gyzrxzCMyaGyRJm5yCRFL+oU +L2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=yAvZzdkw; spf=pass (google.com: domain of linux-kernel+bounces-6282-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6282-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z3-20020a17090a6d0300b0028bc86913b7si954807pjj.156.2023.12.19.18.09.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 18:09:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6282-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=yAvZzdkw; spf=pass (google.com: domain of linux-kernel+bounces-6282-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6282-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 13B6528857B for ; Wed, 20 Dec 2023 02:09:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37679881F; Wed, 20 Dec 2023 02:09:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="yAvZzdkw" 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 443EC79DD; Wed, 20 Dec 2023 02:09:41 +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=0uJT5gTIpGFqVn5BDA+jA6ZegGHjTIiqXuV3kQHOKvc=; b=yAvZzdkwIn63b04Z6f4uZW2h/D +1ftbdo1MCv7BJq6ZQJ8bXx0V6Gr3soCIeS0vXq9XZy8h9bIIAILJmQILjKYAxHlVWveRmNDDMAcY 5Fk1I+pma4h++A2doMPEyAICamKGL111P0OfoAC/cacCdiwWZDqq3xrcuL/Elr0kfoeCovdp5UHTI 7U3o2Lg+acCCHDXC6SHYua8vpqfCsD2ZBpIPIAmREF/WXPtXirq5cD/hnilrUue9X2jqC/b07zUJ/ c8PKKMLZ6bS0Sm/uHnybu4/z2N+orzi+1ZYoSYXwDxA9Lf6qjORUwwU8idpg+sjm4qOzg2HveJKii PQYCwjpg==; 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 1rFm1k-00FxUJ-2E; Wed, 20 Dec 2023 02:09:40 +0000 Message-ID: Date: Tue, 19 Dec 2023 18:09:40 -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_fec_stats Content-Language: en-US To: Jonathan Corbet , netdev@vger.kernel.org Cc: "David S. Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org References: <87v88tg32k.fsf@meer.lwn.net> From: Randy Dunlap In-Reply-To: <87v88tg32k.fsf@meer.lwn.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/19/23 15:55, Jonathan Corbet wrote: > 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 Reviewed-by: Randy Dunlap > --- > 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 -- #Randy https://people.kernel.org/tglx/notes-about-netiquette https://subspace.kernel.org/etiquette.html