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
65#define DOCBOOK "-docbook"65#define DOCBOOK "-docbook"
66#define FUNCTION "-function"66#define FUNCTION "-function"
67#define NOFUNCTION "-nofunction"67#define NOFUNCTION "-nofunction"
68#define NODOCSECTIONS "-no-doc-sections"
68 69
69char *srctree;70char *srctree;
70 71
@@ -231,13 +232,14 @@ void docfunctions(char * filename, char * type) · 160 unmodified lines
231 232
232 for (i=0; i <= symfilecnt; i++)233 for (i=0; i <= symfilecnt; i++)
233 symcnt += symfilelist[i].symbolcnt;234 symcnt += symfilelist[i].symbolcnt;
234 vec = malloc((2 + 2 * symcnt + 2) * sizeof(char*));235 vec = malloc((2 + 2 * symcnt + 3) * sizeof(char *));
235 if (vec == NULL) {236 if (vec == NULL) {
236 perror("docproc: ");237 perror("docproc: ");
237 exit(1);238 exit(1);
238 }239 }
239 vec[idx++] = KERNELDOC;240 vec[idx++] = KERNELDOC;
240 vec[idx++] = DOCBOOK;241 vec[idx++] = DOCBOOK;
242 vec[idx++] = NODOCSECTIONS;
241 for (i=0; i < symfilecnt; i++) {243 for (i=0; i < symfilecnt; i++) {
242 struct symfile * sym = &symfilelist[i];244 struct symfile * sym = &symfilelist[i];
243 for (j=0; j < sym->symbolcnt; j++) {245 for (j=0; j < sym->symbolcnt; j++) {