<div dir="ltr">Try something like this,<div>scripts/<a href="http://checkpatch.pl">checkpatch.pl</a> --file --no-tree yourfile.c</div><div><br></div><div>-madushan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 17, 2015 at 10:57 AM, Chinmay V S <span dir="ltr"><<a href="mailto:cvs268@gmail.com" target="_blank">cvs268@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">One can use checkptach -f <filename> to run the script on source files.<br>
<br>
For more details, check<br>
./scripts/<a href="http://checkpatch.pl" rel="noreferrer" target="_blank">checkpatch.pl</a> --help<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Nov 17, 2015 at 10:46 AM, 慕冬亮 <<a href="mailto:mudongliangabcd@gmail.com">mudongliangabcd@gmail.com</a>> wrote:<br>
> <a href="http://checkpatch.pl" rel="noreferrer" target="_blank">checkpatch.pl</a> is script to check your patch, not C file I think.<br>
><br>
> 2015-11-17 13:01 GMT+08:00 Naver <<a href="mailto:earwigz@naver.com">earwigz@naver.com</a>>:<br>
>> hi,<br>
>> i want to use a script in kernel, but i can't use this.<br>
>> in my terminal.<br>
>> yoon@pc:~/project/aosp/kernel/linux/scripts$ ./<a href="http://checkpatch.pl" rel="noreferrer" target="_blank">checkpatch.pl</a> sortextable.c<br>
>> Must be run from the top-level dir. of a kernel tree<br>
>><br>
>><br>
>> Please let me know how to use this script.<br>
>> Thanks.<br>
>><br>
>><br>
>> _______________________________________________<br>
>> Kernelnewbies mailing list<br>
>> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
>> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
><br>
><br>
><br>
> --<br>
> My best regards to you.<br>
><br>
> No System Is Safe!<br>
> mudongliang<br>
><br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div><i>Faithfully,</i></div><div><i><br></i></div><div><i><font color="#000099">Madushan Nishantha,</font></i></div><div><i><font color="#3333ff">Student at Faculty of Engineering,</font></i></div><div><i><font color="#3333ff">University of Peradeniya,<br></font></i></div><div><i><font color="#3333ff">Sri Lanka.<br></font></i></div></div></div></div>
</div>