Re: [PATCH v5] checkpatch: extend attributes check to handle more patterns

From: Joe Perches
Date: Sun Oct 25 2020 - 14:19:19 EST


On Sun, 2020-10-25 at 23:40 +0530, Dwaipayan Ray wrote:
> On Sun, Oct 25, 2020 at 11:29 PM Joe Perches <joe@xxxxxxxxxxx> wrote:
[]
> > Using $rawline would also change comments and that seems wrong.
> > Any reason to use $rawline instead of $line?
> Yes I used $line initially but changed it because quoted
> strings were being replaced.
>
> Like:
> __attribute__((__section__("_ftrace_events")))

Right thanks, that's a very sensible tradeoff to reduce code complexity.