On 11/17, Valdis.Kletnieks@xxxxxx 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@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@xxxxxxxxxxxxxxxxx >http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies You can use it something like this ./scripts/checkpatch.pl --file --terse /path/to/the/file.c _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies