Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1260201

[RESENT] kernel-doc: unable to parse DECLARE_BITMAP in structs

From conchur@web.de
Newsgroups linux.kernel
Subject [RESENT] kernel-doc: unable to parse DECLARE_BITMAP in structs
Date 2015-11-01 18:00 +0100
Message-ID <qq493-2ov-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


(resent because vger.kernel.org rejected the mail)

Hi,
 
just noticed that kernel-doc is not able to parse members declared with DECLARED_BITMAP inside a struct. Here is my patch:
 
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1802,6 +1802,8 @@ sub dump_struct($$) {
 	$members =~ s/__attribute__\s*\(\([a-z,_\*\s\(\)]*\)\)//i;
 	$members =~ s/__aligned\s*\([^;]*\)//gos;
 	$members =~ s/\s*CRYPTO_MINALIGN_ATTR//gos;
+	# replace DECLARE_BITMAP
+	$members =~ s/DECLARE_BITMAP\s*\(([^,)]+), ([^,)]+)\)/unsigned long $1\[BITS_TO_LONGS($2)\]/gos;
 
 	create_parameterlist($members, ';', $file);
 	check_sections($file, $declaration_name, "struct", $sectcheck, $struct_actual, $nested);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[RESENT] kernel-doc: unable to parse DECLARE_BITMAP in structs conchur@web.de - 2015-11-01 18:00 +0100

csiph-web