History

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.

Johannes Berg committed 19 years ago

Commit 2e959721 parent 4b445951 file · +3 −1Browse files

Showing the changes to scripts/basic (1 of 1 file). Show all

Unified · Split

scripts/basic/docproc.c+3−1
@@ -65,6 +65,7 @@ FILELINE * entity_system; · 64 unmodified lines
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) · 160 unmodified lines
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++) {