History

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>

Matthew Wilcox committed 5 years ago

Commit 80342d41 parent 441ca971 file · +1 −0Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/kernel-doc+1−0
@@ -1777,6 +1777,7 @@ sub dump_function($$) { · 1776 unmodified lines
17771777 $prototype =~ s/^noinline +//;
17781778 $prototype =~ s/__init +//;
17791779 $prototype =~ s/__init_or_module +//;
1780+ $prototype =~ s/__deprecated +//;
17801781 $prototype =~ s/__flatten +//;
17811782 $prototype =~ s/__meminit +//;
17821783 $prototype =~ s/__must_check +//;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t