Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa10a782 authored by Markus Heiser's avatar Markus Heiser Committed by Jonathan Corbet
Browse files

doc-rst: Revert "kernel-doc: fix handling of address_space tags"



This reverts commit a88b1672.

From the origin comit log::

  The RST cpp:function handler is very pedantic: it doesn't allow any
  macros like __user on it

Since the kernel-doc parser does NOT make use of the cpp:domain, there
is no need to change the kernel-doc parser eleminating the address_space
tags.

Signed-off-by: default avatarMarkus Heiser <markus.heiser@darmarIT.de>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 556aa6d5
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1849,9 +1849,6 @@ sub output_function_rst(%) {
	$count++;
	$type = $args{'parametertypes'}{$parameter};

	# RST doesn't like address_space tags at function prototypes
	$type =~ s/__(user|kernel|iomem|percpu|pmem|rcu)\s*//;

	if ($type =~ m/([^\(]*\(\*)\s*\)\s*\(([^\)]*)\)/) {
	    # pointer-to-function
	    print $1 . $parameter . ") (" . $2;