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.
Showing the changes to scripts/basic (1 of 1 file). Show all
Unified · Split
| @@ -65,6 +65,7 @@ FILELINE * entity_system; · 64 unmodified lines | ||
| 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 | |
| @@ -231,13 +232,14 @@ void docfunctions(char * filename, char * type) · 160 unmodified lines | ||
| 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++) { |