Re: [RFC v1 12/31] checkpatch: added support for struct MOCK(foo) syntax

From: Brendan Higgins
Date: Tue Oct 16 2018 - 20:03:17 EST


On Tue, Oct 16, 2018 at 4:59 PM Joe Perches <joe@xxxxxxxxxxx> wrote:
>
> On Tue, 2018-10-16 at 16:51 -0700, Brendan Higgins wrote:
> > This adds struct MOCK(foo) as a NonptrType so that it is recognized
> > correctly in declarations.
>
> I think this commit message is lacking context.

Oh sorry, you are right. We added macros for generating mocks from
types, so we decided to name the generated mock types struct MOCK(foo)
(where the base type is struct foo); this commit makes checkpatch not
complain at this new syntax.