Re: [PATCH v2] checkpatch: externalize function-like type macros
From: Hong, Yifan
Date: Mon Nov 30 2026 - 16:08:05 EST
On Wed, Nov 18, 2026 at 12:17 PM Joe Perches <joe@xxxxxxxxxxx> wrote:
>
> 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
Hi Joe, just a gentle ping in case this falls off from your list. Did
you have a chance to try out the patch? Thanks for your time!