RE: [PATCH] checkpatch: fix camel case seeding when run with --root

From: Keller, Jacob E
Date: Wed Mar 20 2019 - 18:24:48 EST


> -----Original Message-----
> From: Joe Perches [mailto:joe@xxxxxxxxxxx]
> Sent: Wednesday, March 20, 2019 2:18 PM
> To: Keller, Jacob E <jacob.e.keller@xxxxxxxxx>; linux-kernel@xxxxxxxxxxxxxxx;
> apw@xxxxxxxxxxxxx; Joe Perches <golf@xxxxxxxxxxx>
> Cc: Intel Wired LAN <intel-wired-lan@xxxxxxxxxxxxxxxx>; netdev@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH] checkpatch: fix camel case seeding when run with --root
>
> On Wed, 2019-03-20 at 20:09 +0000, Keller, Jacob E wrote:
> > > -----Original Message-----
> > > From: Keller, Jacob E
> > > Sent: Thursday, March 14, 2019 6:04 PM
> > > To: linux-kernel@xxxxxxxxxxxxxxx
> > > Cc: Intel Wired LAN <intel-wired-lan@xxxxxxxxxxxxxxxx>; netdev@xxxxxxxxxxxxxxx;
> > > Keller, Jacob E <jacob.e.keller@xxxxxxxxx>; joe@xxxxxxxxxxx
> > > Subject: [PATCH] checkpatch: fix camel case seeding when run with --root
> > >
> > > checkpatch.pl avoids warning about camel case of some definitions by
> > > seeding a file that tracks all of the currently committed camel case
> > > definitions.
> > >
> > > To build this seed file, checkpatch.pl decides between using git or the
> > > --root parameter.
> > >
> > > This works as long as you don't run checkpatch.pl from within
> > > a different git tree that is not the Linux kernel.
>
> Odd use case, but I'll forward it on as it doesn't
> seem to have any other effect.
>
> cheers, Joe

We run checkpatch.pl on Linux driver code which is out-of-tree to start with, and then will eventually be migrated into the in-tree kernel later as we develop it.

Without this patch, the use of checkpatch.pl with --root causes bogus hits with camel case issues.

Thanks,
Jake