Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2e95972

Browse filesBrowse 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
Copy full SHA for 2e95972

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Open diff view settings
Collapse file

‎scripts/basic/docproc.c‎

Copy file name to clipboardExpand all lines: scripts/basic/docproc.c
+3-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.