Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp377093rdb; Tue, 19 Dec 2023 22:29:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxGyXGBOF6pIcleZB4hN1SiEENV3PINrIl1vTBG+Ew03n3b+qt3SQqrcQfxkT+S+P7mqO/ X-Received: by 2002:a17:902:d549:b0:1d3:4fa1:9f4 with SMTP id z9-20020a170902d54900b001d34fa109f4mr9123056plf.92.1703053769086; Tue, 19 Dec 2023 22:29:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703053769; cv=none; d=google.com; s=arc-20160816; b=QLCAmHF0IAlweFITLEqzBN8iUvhHcrrBN7xBXKdxVUT6OMEwi/LEw64zUHPE20cEh2 jzPfLUsThLi1rG0mcF9nGScKDOWJynBcOYQxzNPgaI12rnJ25jKGGgNocu7rKEJwRvJL F2HzW6cFC7UdRd+HCXreZhKwmDNAGNyBF8gqYJsE+E/C5Dna+tYxDyk7Y//j3Ec9JDNW bTO9rAotynmkMKtcAgcQNSzdvsidug+U8XKOAh/4GW6q1Nl9odBWKNF9UUtvAbANWvn0 Aod1wNijuCTLRlFkmtwoReLbht9yHKymeLOGsmIluOWyghup74frr6Lyu8fk2ArHo1q2 XIng== 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=hqMzQcL9dCaPS/BWjMsw8duUh/43SjPceygtauigPfw=; fh=p0QSPWN5siDyBodRxZOIdrsiJ+fleg9N+fwcNDVnl5U=; b=NM6FBUaXN42ZetGnwODy+SIuRJVYLyP7FfQaZ7yA15S4eR1ANbXet9kpJNOrE6uIJM vO6eoUo5EOcDTFudgd66B/tsB//Ev15rixQ+QwHUCq3xUlLb71cuV5bmzohNoDWmwjOm L7Yc5r+1eLrt1WR5mlOF7ySzQumSnk0+9qwyChBlZE4gNR3kH4AgQoYjuNfK9D20c9gQ zph8dFjBwpiT5p71CzdCZ4x2uxkUpvUwWFJi3ubx/dzXA0ABNV/Z3B4fvVYyP92dWe3X vgGpEClef5sjkRLsC+BOeOxFnb3xKzuX8bprC4f2khiLX/BRYOaXYGX1U9Bg5LuszHVH Wwrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=TmEm8E62; spf=pass (google.com: domain of linux-kernel+bounces-6420-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6420-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a2-20020a170902ecc200b001cfbf5c045bsi21693465plh.458.2023.12.19.22.29.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 22:29:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6420-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=@infradead.org header.s=bombadil.20210309 header.b=TmEm8E62; spf=pass (google.com: domain of linux-kernel+bounces-6420-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6420-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 E6DBF287D05 for ; Wed, 20 Dec 2023 06:29:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B9A4125AC; Wed, 20 Dec 2023 06:29:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="TmEm8E62" 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 B0E67125AB; Wed, 20 Dec 2023 06:29:10 +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=hqMzQcL9dCaPS/BWjMsw8duUh/43SjPceygtauigPfw=; b=TmEm8E62f1+FgD45iP1MRou1+B 4h38XHxYisTW8Kft69E9UrX/nREJXC6jBAj7zKqcZbh3uco3uuN1iSrChhEs2FLj/jfALCQkyqxvR 7fmWXb2S/7lzWvepQvU4h5QHYDtc3ZID1l5RDeK9mM4dlXzdbCMXr2ebutwD2j7nnqjg8roRm7n93 f+XONdmbO6IQL5XCHF9BV/jLSXB8DHzq6UYDS8cqetgV5eUnuFldB9Jd6tWWoi69FWwc917868hv9 X7ZVRwenOazTeDt9Xjhu0KPRQMPD82CAMqyg4h8RNXcrJaXsw3oXSLNEbMwuFL0uBE729E4hvs23r QoFB4gtQ==; 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 1rFq4p-00GIZn-1A; Wed, 20 Dec 2023 06:29:07 +0000 Message-ID: <4155c90e-cdb1-4645-8bcc-fed4ea01ac83@infradead.org> Date: Tue, 19 Dec 2023 22:29:06 -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] scripts: kernel-doc: Bug fixed for erroneous warning Content-Language: en-US To: Muhammad Muzammil , corbet@lwn.net, gustavoars@kernel.org Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org References: <20231220062446.14511-1-muzammil@dreambigsemi.com> From: Randy Dunlap In-Reply-To: <20231220062446.14511-1-muzammil@dreambigsemi.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, On 12/19/23 22:24, Muhammad Muzammil wrote: > From: Muzammil Ashraf > > kernel-doc: fixed erroneous warning generated by '__counted_by' > > Signed-off-by: Muzammil Ashraf > --- > scripts/kernel-doc | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/scripts/kernel-doc b/scripts/kernel-doc > index 1484127db104..ea9688df0e93 100755 > --- a/scripts/kernel-doc > +++ b/scripts/kernel-doc > @@ -1661,6 +1661,7 @@ sub check_sections($$$$$) { > } > elsif (($decl_type eq "struct") or > ($decl_type eq "union")) { > + next if (index("@_", "__counted_by") != -1); > emit_warning("${file}:$.", > "Excess $decl_type member " . > "'$sects[$sx]' " . One of both of these patches should be enough. Can you test these instead of your patch, please? https://lore.kernel.org/linux-doc/20231215001347.work.151-kees@kernel.org/ https://lore.kernel.org/linux-doc/87le9rjb4y.fsf@meer.lwn.net/ Thanks. -- #Randy https://people.kernel.org/tglx/notes-about-netiquette https://subspace.kernel.org/etiquette.html