aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/basic/docproc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/basic/docproc.c b/scripts/basic/docproc.c
index 0e4bd5459df4..7eae53419a48 100644
--- a/scripts/basic/docproc.c
+++ b/scripts/basic/docproc.c
@@ -65,6 +65,7 @@ FILELINE * entity_system;
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)
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++) {