Re: Problem with checkpatch.pl (commit f5f613259f3f ("checkpatch: allow not using -f with files that are in git"))

From: Joe Perches
Date: Thu Oct 22 2020 - 10:37:26 EST


On Thu, 2020-10-22 at 15:59 +0200, Christophe Leroy wrote:
> Hi,
>
> Runnning ./scripts/checkpatch.pl -g HEAD, I get the following error:
>
> Global symbol "$gitroot" requires explicit package name at ./scripts/checkpatch.pl line 980.
> Execution of ./scripts/checkpatch.pl aborted due to compilation errors.
>
> Reverting commit f5f613259f3f ("checkpatch: allow not using -f with files that are in git") clears
> the problem.
>
> Christophe

Thanks for the report.

The problem depended on another patch in -next
that was not send.

https://lore.kernel.org/lkml/c5e23b45562373d632fccb8bc04e563abba4dd1d.camel@xxxxxxxxxxx/