Skip to content

Commit 2e95972

Browse files
jmbergsravnborg
authored andcommitted
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>
1 parent 4b44595 commit 2e95972

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/basic/docproc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ FILELINE * entity_system;
6565
#define DOCBOOK "-docbook"
6666
#define FUNCTION "-function"
6767
#define NOFUNCTION "-nofunction"
68+
#define NODOCSECTIONS "-no-doc-sections"
6869

6970
char *srctree;
7071

@@ -231,13 +232,14 @@ void docfunctions(char * filename, char * type)
231232

232233
for (i=0; i <= symfilecnt; i++)
233234
symcnt += symfilelist[i].symbolcnt;
234-
vec = malloc((2 + 2 * symcnt + 2) * sizeof(char*));
235+
vec = malloc((2 + 2 * symcnt + 3) * sizeof(char *));
235236
if (vec == NULL) {
236237
perror("docproc: ");
237238
exit(1);
238239
}
239240
vec[idx++] = KERNELDOC;
240241
vec[idx++] = DOCBOOK;
242+
vec[idx++] = NODOCSECTIONS;
241243
for (i=0; i < symfilecnt; i++) {
242244
struct symfile * sym = &symfilelist[i];
243245
for (j=0; j < sym->symbolcnt; j++) {

0 commit comments

Comments
 (0)