aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kernel-doc
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kernel-doc')
-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 }