Re: [PATCH v2] checkpatch: externalize function-like type macros

From: Joe Perches

Date: Tue Dec 01 2026 - 13:18:33 EST


On Mon, 2026-11-30 at 13:07 -0800, Hong, Yifan wrote:
> 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!

Sorry, haven't had much time. It looks exactly right and fine though.
I'll try later this evening.