summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-23 06:55:59 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-23 06:55:59 -0400
commit7e5b7d1b3a8facd4dc1ddb5d9ec53c0687d13de7 (patch)
tree68bf4cf7fc44e0f8bf6e46116996fe7b969fda4e /scripts
parente5208ed280685947b3892888df09285676aab100 (diff)
parenta88b1672d4ddf9895eb53e6980926d5e960dea8e (diff)
Merge branch 'docs-next' of git://git.lwn.net/linux into topic/docs-next
* 'docs-next' of git://git.lwn.net/linux: doc-rst: kernel-doc: fix handling of address_space tags Revert "doc/sphinx: Enable keep_warnings" doc-rst: kernel-doc directive, fix state machine reporter docs: deprecate kernel-doc-nano-HOWTO.txt doc/sphinx: Enable keep_warnings Documentation: add watermark_scale_factor to the list of vm systcl file kernel-doc: Fix up warning output docs: Get rid of some kernel-documentation warnings
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/kernel-doc6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index 41eade332307..f9652c25e09a 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1848,6 +1848,10 @@ sub output_function_rst(%) {
1848 } 1848 }
1849 $count++; 1849 $count++;
1850 $type = $args{'parametertypes'}{$parameter}; 1850 $type = $args{'parametertypes'}{$parameter};
1851
1852 # RST doesn't like address_space tags at function prototypes
1853 $type =~ s/__(user|kernel|iomem|percpu|pmem|rcu)\s*//;
1854
1851 if ($type =~ m/([^\(]*\(\*)\s*\)\s*\(([^\)]*)\)/) { 1855 if ($type =~ m/([^\(]*\(\*)\s*\)\s*\(([^\)]*)\)/) {
1852 # pointer-to-function 1856 # pointer-to-function
1853 print $1 . $parameter . ") (" . $2; 1857 print $1 . $parameter . ") (" . $2;
@@ -2994,7 +2998,7 @@ sub process_file($) {
2994 } 2998 }
2995 } elsif ($inline_doc_state == STATE_INLINE_NAME) { 2999 } elsif ($inline_doc_state == STATE_INLINE_NAME) {
2996 $inline_doc_state = STATE_INLINE_ERROR; 3000 $inline_doc_state = STATE_INLINE_ERROR;
2997 print STDERR "Warning(${file}:$.): "; 3001 print STDERR "${file}:$.: warning: ";
2998 print STDERR "Incorrect use of kernel-doc format: $_"; 3002 print STDERR "Incorrect use of kernel-doc format: $_";
2999 ++$warnings; 3003 ++$warnings;
3000 } 3004 }