From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="TmEm8E62" 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-doc@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