From mboxrd@z Thu Jan 1 00:00:00 1970 From: brutallesale@gmail.com (Bogicevic Sasa) Date: Tue, 17 Nov 2015 18:54:26 +0100 Subject: hi, i want to use a script in kernel In-Reply-To: <5596.1447780396@turing-police.cc.vt.edu> References: <564AB49F.5050801@naver.com> <5596.1447780396@turing-police.cc.vt.edu> Message-ID: <20151117175426.GA16539@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On 11/17, Valdis.Kletnieks at vt.edu wrote: >On Tue, 17 Nov 2015 14:01:19 +0900, Naver said: >> hi, >> i want to use a script in kernel, but i can't use this. >> in my terminal. >> yoon at pc:~/project/aosp/kernel/linux/scripts$ ./checkpatch.pl sortextable.c >> Must be run from the top-level dir. of a kernel tree > >$ cd ~/project/aosp/kernel/linux >$ scripts/checkpatch.pl scripts/sortextable.c > >Though why you have a .c file in scripts/ is beyond me, it should probably >be in some other directory. >_______________________________________________ >Kernelnewbies mailing list >Kernelnewbies at kernelnewbies.org >http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies You can use it something like this ./scripts/checkpatch.pl --file --terse /path/to/the/file.c