checkpatch: Allow spaces after all coroutine annotations
The coroutine annotations may be used in the declaration of function pointers, which triggers checkpatch due to the space before the parentheses. E.g: int coroutine_fn (*run)(Job *job, Error **errp); ^ The coroutine_fn annotation is already included in the list of terms where spaces are allowed. Add the other coroutine annotations: coroutine_mixed_fn and no_coroutine_fn. Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Link: https://lore.kernel.org/qemu-devel/20260420191356.4439-1-farosas@suse.de Signed-off-by: Fabiano Rosas <farosas@suse.de>
Fabiano Rosas committed
Apr 20, 2026 at 16:13 UTC
1e1cc23241d7ac8119a3d913ae43ae453b576a9a
1 file changed
+1
scripts/checkpatch.pl
+1
@@ -2441,6 +2441,7 @@ sub process {
2441
if ($name =~ /^(?:
2442
if|for|while|switch|return|case|
2443
volatile|__volatile__|coroutine_fn|
2444
+ coroutine_mixed_fn|no_coroutine_fn|
2445
__attribute__|format|__extension__|
2446
asm|__asm__)$/x)
2447
{