<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">&lt;<a href="mailto:cvs268@gmail.com" target="_blank">cvs268@gmail.com</a>&gt;</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 &lt;filename&gt; 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, 慕冬亮 &lt;<a href="mailto:mudongliangabcd@gmail.com">mudongliangabcd@gmail.com</a>&gt; wrote:<br>
&gt; <a href="http://checkpatch.pl" rel="noreferrer" target="_blank">checkpatch.pl</a> is script to check your patch, not C file I think.<br>
&gt;<br>
&gt; 2015-11-17 13:01 GMT+08:00 Naver &lt;<a href="mailto:earwigz@naver.com">earwigz@naver.com</a>&gt;:<br>
&gt;&gt; hi,<br>
&gt;&gt; i want to use a script in kernel, but i can&#39;t use this.<br>
&gt;&gt; in my terminal.<br>
&gt;&gt; yoon@pc:~/project/aosp/kernel/linux/scripts$ ./<a href="http://checkpatch.pl" rel="noreferrer" target="_blank">checkpatch.pl</a> sortextable.c<br>
&gt;&gt; Must be run from the top-level dir. of a kernel tree<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Please let me know how to use this script.<br>
&gt;&gt; Thanks.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Kernelnewbies mailing list<br>
&gt;&gt; <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
&gt;&gt; <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; My best regards to you.<br>
&gt;<br>
&gt;      No System Is Safe!<br>
&gt;      mudongliang<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Kernelnewbies mailing list<br>
&gt; <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
&gt; <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>