public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scripts: kernel-doc: Bug fixed for erroneous warning
@ 2023-12-20  6:24 Muhammad Muzammil
  2023-12-20  6:29 ` Randy Dunlap
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Muhammad Muzammil @ 2023-12-20  6:24 UTC (permalink / raw)
  To: rdunlap, corbet, gustavoars
  Cc: linux-doc, linux-kernel, linux-hardening, Muzammil Ashraf

From: Muzammil Ashraf <m.muzzammilashraf@gmail.com>

kernel-doc: fixed erroneous warning generated by '__counted_by'

Signed-off-by: Muzammil Ashraf <m.muzzammilashraf@gmail.com>
---
 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]' " .
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-20 15:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-20  6:24 [PATCH] scripts: kernel-doc: Bug fixed for erroneous warning Muhammad Muzammil
2023-12-20  6:29 ` Randy Dunlap
2023-12-20  6:35   ` Muhammad Muzammil
2023-12-20  6:49     ` Randy Dunlap
2023-12-20  6:30 ` Greg KH
2023-12-20 15:30 ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox