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

From: Christophe Leroy
Date: Thu Oct 22 2020 - 09:59:47 EST


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