Skip to content

Commit 80342d4

Browse files
Matthew WilcoxJonathan Corbet
authored andcommitted
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>
1 parent 441ca97 commit 80342d4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎scripts/kernel-doc‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1777,6 +1777,7 @@ sub dump_function($$) {
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 +//;

0 commit comments

Comments
 (0)