Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1260201 > unrolled thread
| Started by | conchur@web.de |
|---|---|
| First post | 2015-11-01 18:00 +0100 |
| Last post | 2015-11-01 18:00 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[RESENT] kernel-doc: unable to parse DECLARE_BITMAP in structs conchur@web.de - 2015-11-01 18:00 +0100
| From | conchur@web.de |
|---|---|
| Date | 2015-11-01 18:00 +0100 |
| Subject | [RESENT] kernel-doc: unable to parse DECLARE_BITMAP in structs |
| Message-ID | <qq493-2ov-3@gated-at.bofh.it> |
(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 top | Article view | linux.kernel
csiph-web