[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231220062446.14511-1-muzammil@dreambigsemi.com>
Date: Wed, 20 Dec 2023 11:24:46 +0500
From: Muhammad Muzammil <m.muzzammilashraf@...il.com>
To: rdunlap@...radead.org,
corbet@....net,
gustavoars@...nel.org
Cc: linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org,
Muzammil Ashraf <m.muzzammilashraf@...il.com>
Subject: [PATCH] scripts: kernel-doc: Bug fixed for erroneous warning
From: Muzammil Ashraf <m.muzzammilashraf@...il.com>
kernel-doc: fixed erroneous warning generated by '__counted_by'
Signed-off-by: Muzammil Ashraf <m.muzzammilashraf@...il.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
Powered by blists - more mailing lists