Re: [PATCH v2] checkpatch: externalize function-like type macros
From: Joe Perches
Date: Wed Nov 18 2026 - 15:27:40 EST
On 2026-11-18 11:39, HONG Yifan wrote:
Following scripts/const_structs.checkpatch in commit bf1fa1dae68e
("checkpatch: externalize the structs that should be const"), read
additional function-like type macro names from a new companion file
scripts/type_macros.checkpatch into $type_macros (named to mirror
$const_structs/$conststructsfile and initialized with the built-in
typeof and __typeof__ keywords) and use $type_macros in $NonptrType and
$NonptrTypeWithAttr.
Yes like this.
I'll test it before i ack it tomorrow.
Thanks, Joe