kernel-doc: Fix symbol matching for dropped suffixes
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 6 Jun 2025 14:15:42 +0000 (15:15 +0100)
committerJonathan Corbet <corbet@lwn.net>
Mon, 9 Jun 2025 18:36:40 +0000 (12:36 -0600)
commit27ad33b6b349c8c76fdef3bf0f707158ce7c275e
treebc08c81ed0a8624b3dfe33f988a5c2c35e51a94d
parent97d91036a4ccbfd402bc8420d970cea250b2bb3c
kernel-doc: Fix symbol matching for dropped suffixes

The support for dropping "_noprof" missed dropping the suffix from
exported symbols.  That meant that using the :export: feature would
look for kernel-doc for (eg) krealloc_noprof() and not find the
kernel-doc for krealloc().

Fixes: 51a7bf0238c2 (scripts/kernel-doc: drop "_noprof" on function prototypes)
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20250606141543.1285671-1-willy@infradead.org
scripts/lib/kdoc/kdoc_parser.py