Problem facing while running checkpatch.pl on linux-next tree

Jitendra kumar Khasdev jkhasdev at gmail.com
Thu Dec 25 05:11:06 EST 2014


Rahul Garg <rahul.lnmiit <at> gmail.com> writes:

> 
> Hi All,
> 
> I am trying to run checkpatch.pl on linux-next tree's staging folder.
> But whatever sub directory, I try to run it on. It is giving me the
> same error for all the files :
> 
> ERROR: Does not appear to be a unified-diff format patch
> 
> I thought that it might be a problem with my git. So I clone the git tree
again.
> 
> So can anyone help me, what am I missing ?
> 
> Regards
> Rahul
> 


Dear Rahul,
 
It seems that while running ./script/checkpatch.pl you are missing flags.
I think try this command:

./scripts/checkpatch.pl --file --terse ./drivers/staging/comedi/drives/<your
file name>







More information about the Kernelnewbies mailing list