OSDN Git Service

kernel-doc: Add support for __deprecated
authorMatthew Wilcox <willy@infradead.org>
Tue, 27 Apr 2021 11:48:28 +0000 (12:48 +0100)
committerJonathan Corbet <corbet@lwn.net>
Tue, 27 Apr 2021 15:59:04 +0000 (09:59 -0600)
commit80342d484afceec491bcc85ff1e32c5491c1182f
tree8900c0bb31a5572e8d15fd9af5613fd9841e7d86
parent441ca977a84dadac6173db7c07c25db110b76c1e
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>
scripts/kernel-doc