summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-10-24 15:08:48 -0700
committerSam Ravnborg <sam@ravnborg.org>2008-01-28 23:14:35 +0100
commit2e95972c44ca7b3dd3c5d6ff08745b56ddfa55bc (patch)
treecf7d5ebefd08be48dc6e125263286246e1caba21 /scripts/basic
parent4b44595a7b8e0ebf3fce108df65d8cd6a6cf4910 (diff)
downloadlinux-3.10-2e95972c44ca7b3dd3c5d6ff08745b56ddfa55bc.tar.gz
linux-3.10-2e95972c44ca7b3dd3c5d6ff08745b56ddfa55bc.tar.bz2
linux-3.10-2e95972c44ca7b3dd3c5d6ff08745b56ddfa55bc.zip
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>
Diffstat (limited to 'scripts/basic')
-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 0e4bd5459df..7eae53419a4 100644
--- a/scripts/basic/docproc.c
+++ b/scripts/basic/docproc.c
@@ -65,6 +65,7 @@ FILELINE * entity_system;
#define DOCBOOK "-docbook"
#define FUNCTION "-function"
#define NOFUNCTION "-nofunction"
+#define NODOCSECTIONS "-no-doc-sections"
char *srctree;
@@ -231,13 +232,14 @@ void docfunctions(char * filename, char * type)
for (i=0; i <= symfilecnt; i++)
symcnt += symfilelist[i].symbolcnt;
- vec = malloc((2 + 2 * symcnt + 2) * sizeof(char*));
+ vec = malloc((2 + 2 * symcnt + 3) * sizeof(char *));
if (vec == NULL) {
perror("docproc: ");
exit(1);
}
vec[idx++] = KERNELDOC;
vec[idx++] = DOCBOOK;
+ vec[idx++] = NODOCSECTIONS;
for (i=0; i < symfilecnt; i++) {
struct symfile * sym = &symfilelist[i];
for (j=0; j < sym->symbolcnt; j++) {