diff options
author | Matthew Wilcox <willy@infradead.org> | 2021-04-27 13:48:28 +0200 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2021-04-27 17:59:04 +0200 |
commit | 80342d484afceec491bcc85ff1e32c5491c1182f (patch) | |
tree | 8900c0bb31a5572e8d15fd9af5613fd9841e7d86 /scripts/kernel-doc | |
parent | docs/zh_CN: add openrisc translation to zh_CN index (diff) | |
download | linux-80342d484afceec491bcc85ff1e32c5491c1182f.tar.xz linux-80342d484afceec491bcc85ff1e32c5491c1182f.zip |
kernel-doc: Add support for __deprecated
The current linux-next tree has a new error:
./Documentation/gpu/drm-mm:445: ./drivers/gpu/drm/drm_prime.c:994: WARNING: Error in declarator or parameters
Invalid C declaration: Expecting "(" in parameters. [error at 17]
int __deprecated drm_prime_sg_to_page_array (struct sg_table *sgt, struct page **pages, int max_entries)
-----------------^
While we might consider that documenting a deprecated interface is not
necessarily best practice, removing the error is easy.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Link: https://lore.kernel.org/r/20210427114828.GY235567@casper.infradead.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts/kernel-doc')
-rwxr-xr-x | scripts/kernel-doc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 2a85d34fdcd0..4840e748fca8 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1777,6 +1777,7 @@ sub dump_function($$) { $prototype =~ s/^noinline +//; $prototype =~ s/__init +//; $prototype =~ s/__init_or_module +//; + $prototype =~ s/__deprecated +//; $prototype =~ s/__flatten +//; $prototype =~ s/__meminit +//; $prototype =~ s/__must_check +//; |