Commit 2e95972c44ca7b3dd3c5d6ff08745b56ddfa55bc
Committed by
Sam Ravnborg
1 parent
4b44595a7b
Exists in
master
and in
20 other branches
kernel-doc: use no-doc option
When asked by a template to include all functions from a file, it will also include DOC: sections wreaking havoc in the generated docbook file. This patch makes it use the new -no-doc-sections flag for kernel-doc to avoid this. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
scripts/basic/docproc.c
... | ... | @@ -65,6 +65,7 @@ |
65 | 65 | #define DOCBOOK "-docbook" |
66 | 66 | #define FUNCTION "-function" |
67 | 67 | #define NOFUNCTION "-nofunction" |
68 | +#define NODOCSECTIONS "-no-doc-sections" | |
68 | 69 | |
69 | 70 | char *srctree; |
70 | 71 | |
71 | 72 | |
... | ... | @@ -231,13 +232,14 @@ |
231 | 232 | |
232 | 233 | for (i=0; i <= symfilecnt; i++) |
233 | 234 | symcnt += symfilelist[i].symbolcnt; |
234 | - vec = malloc((2 + 2 * symcnt + 2) * sizeof(char*)); | |
235 | + vec = malloc((2 + 2 * symcnt + 3) * sizeof(char *)); | |
235 | 236 | if (vec == NULL) { |
236 | 237 | perror("docproc: "); |
237 | 238 | exit(1); |
238 | 239 | } |
239 | 240 | vec[idx++] = KERNELDOC; |
240 | 241 | vec[idx++] = DOCBOOK; |
242 | + vec[idx++] = NODOCSECTIONS; | |
241 | 243 | for (i=0; i < symfilecnt; i++) { |
242 | 244 | struct symfile * sym = &symfilelist[i]; |
243 | 245 | for (j=0; j < sym->symbolcnt; j++) { |