netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* checkpatch.pl broke in net-next
@ 2020-10-27 22:56 Jacob Keller
  2020-10-27 23:03 ` Jakub Kicinski
  0 siblings, 1 reply; 3+ messages in thread
From: Jacob Keller @ 2020-10-27 22:56 UTC (permalink / raw)
  To: Jakub Kicinski, netdev@vger.kernel.org

Hi Jakub,

It looks like net-next just pulled in a change to checkpatch.pl which
causes it to break:

$ ./scripts/checkpatch.pl
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.
ERROR: checkpatch.pl failed: 255

It is caused by commit f5f613259f3f ("checkpatch: allow not using -f
with files that are in git"), which appears to make use of "$gitroot".

This variable doesn't exist, so of course the perl script breaks.

This commit appears in Linus' tree, and must have been picked up when we
merged with his tree.

This issue is fixed by 0f7f635b0648 ("checkpatch: enable GIT_DIR
environment use to set git repository location") which is the commit
that actually introduces $gitroot.

Any chance we can get this merged into net-next? It has broken our
automation that runs checkpatch.pl

Thanks,
Jake

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: checkpatch.pl broke in net-next
  2020-10-27 22:56 checkpatch.pl broke in net-next Jacob Keller
@ 2020-10-27 23:03 ` Jakub Kicinski
  2020-10-27 23:06   ` Jacob Keller
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Kicinski @ 2020-10-27 23:03 UTC (permalink / raw)
  To: Jacob Keller; +Cc: netdev@vger.kernel.org

On Tue, 27 Oct 2020 15:56:35 -0700 Jacob Keller wrote:
> Hi Jakub,
> 
> It looks like net-next just pulled in a change to checkpatch.pl which
> causes it to break:
> 
> $ ./scripts/checkpatch.pl
> 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.
> ERROR: checkpatch.pl failed: 255
> 
> It is caused by commit f5f613259f3f ("checkpatch: allow not using -f
> with files that are in git"), which appears to make use of "$gitroot".
> 
> This variable doesn't exist, so of course the perl script breaks.
> 
> This commit appears in Linus' tree, and must have been picked up when we
> merged with his tree.
> 
> This issue is fixed by 0f7f635b0648 ("checkpatch: enable GIT_DIR
> environment use to set git repository location") which is the commit
> that actually introduces $gitroot.
> 
> Any chance we can get this merged into net-next? It has broken our
> automation that runs checkpatch.pl

That and kvm broke the 32 bit x86 build :/

I will submit net to Linus on Thu, and pull back from him to net and
net-next. That'll fix it.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: checkpatch.pl broke in net-next
  2020-10-27 23:03 ` Jakub Kicinski
@ 2020-10-27 23:06   ` Jacob Keller
  0 siblings, 0 replies; 3+ messages in thread
From: Jacob Keller @ 2020-10-27 23:06 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: netdev@vger.kernel.org



On 10/27/2020 4:03 PM, Jakub Kicinski wrote:
> On Tue, 27 Oct 2020 15:56:35 -0700 Jacob Keller wrote:
>> Hi Jakub,
>>
>> It looks like net-next just pulled in a change to checkpatch.pl which
>> causes it to break:
>>
>> $ ./scripts/checkpatch.pl
>> 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.
>> ERROR: checkpatch.pl failed: 255
>>
>> It is caused by commit f5f613259f3f ("checkpatch: allow not using -f
>> with files that are in git"), which appears to make use of "$gitroot".
>>
>> This variable doesn't exist, so of course the perl script breaks.
>>
>> This commit appears in Linus' tree, and must have been picked up when we
>> merged with his tree.
>>
>> This issue is fixed by 0f7f635b0648 ("checkpatch: enable GIT_DIR
>> environment use to set git repository location") which is the commit
>> that actually introduces $gitroot.
>>
>> Any chance we can get this merged into net-next? It has broken our
>> automation that runs checkpatch.pl
> 
> That and kvm broke the 32 bit x86 build :/
> 
> I will submit net to Linus on Thu, and pull back from him to net and
> net-next. That'll fix it.
> 

Sounds good, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-27 23:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-27 22:56 checkpatch.pl broke in net-next Jacob Keller
2020-10-27 23:03 ` Jakub Kicinski
2020-10-27 23:06   ` Jacob Keller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).