Need help with checkpatch.pl
Hi,
When I run checkpatch.pl, I come across an error message.
perl scripts/checkpatch.pl -f drivers/staging/wfx/* | less
Checkpatch.pl is giving me this error:
Global symbol "$gitroot" requires explicit package name (did you forget to declare "my $gitroot"?) at scripts/checkpatch.pl line 980. Execution of scripts/checkpatch.pl aborted due to compilation errors.
Can you please tell me if I am missing something?
Thank you,
Izabela
Quoted 6 lines · Izabela Bakollari
Hi,
When I run checkpatch.pl, I come across an error message.
perl
scripts/checkpatch.pl-fdrivers/staging/wfx/*| less
Quoted 7 lines
Checkpatch.pl is giving me this error:
Global symbol "$gitroot" requires explicit package name (did you forget to declare "my $gitroot"?) at
scripts/checkpatch.plline 980. Execution ofscripts/checkpatch.plaborted due to compilation errors.Can you please tell me if I am missing something?
Please check this patch sent in today. Still awaiting approval I guess but I was able to move on by modifying my checkpatch version.
https://lkml.org/lkml/2020/10/18/167
Thanks,
Deepak.
Quoted 8 lines
Thank you,
IzabelaSignature · 3 lines
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/935594dd-9aaa-4fe6-8200-9ddcb2c7eb8dn%40googlegroups.com.
Quoted 6 lines · Izabela Bakollari
Hi,
Whenᅵ I run checkpatch.pl, I come across an error message.
perl
scripts/checkpatch.pl-fdrivers/staging/wfx/*| less
Quoted 7 lines
Checkpatch.pl is giving me this error:
Global symbol "$gitroot" requires explicit package name (did you forget to declare "my $gitroot"?) at
scripts/checkpatch.plline 980. Execution ofscripts/checkpatch.plaborted due to compilation errors.Can you please tell me if I am missing something?
I tried your command and didn't get the error you are describing. I get some messages about a module names ply, but I also get checkpatch warnings. Your drivers directory is a subdirectory of a linux kernel that you obtained with git clone?
julia
Quoted 13 lines
Thank you,
Izabela--
You received this message because you are subscribed to the Google Groups
"outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/935594dd-9aaa-4fe6-8200- 9ddcb2c7eb8dn%40googlegroups.com.