Skip to contentSkip to conversation

Need help with checkpatch.pl

DISCUSSION Izabela Bakollari 3 participants 3 messages Oct 18, 2020

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 6 lines · Izabela Bakollari

Hi,

When I run checkpatch.pl, I come across an error message.

perl scripts/checkpatch.pl -f drivers/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.pl line 980. Execution of scripts/checkpatch.pl aborted 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,
Izabela

Signature · 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.
#2 lore raw
In reply to Izabela Bakollari
Quoted 6 lines · Izabela Bakollari

Hi,

Whenᅵ I run checkpatch.pl, I come across an error message.

perl scripts/checkpatch.pl -f drivers/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.pl line 980. Execution of scripts/checkpatch.pl aborted 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.