hi, i want to use a script in kernel
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
Please let me know how to use this script.
Thanks.
Hi Naver,
The prompt has told you to run it on top-level of directory. Execute "./scripts/checkpatch.pl sortextable.c" Best Regards
Nan Xiao
Quoted 15 lines · Naver
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.plsortextable.cMust be run from the top-level dir. of a kernel treePlease let me know how to use this script.
Thanks._______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
checkpatch.pl is script to check your patch, not C file I think.
2015-11-17 13:01 GMT+08:00 Naver <[email protected]>:
Quoted 15 lines
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.plsortextable.cMust be run from the top-level dir. of a kernel treePlease let me know how to use this script.
Thanks._______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Signature · 4 lines
My best regards to you.
No System Is Safe!
mudongliangOne can use checkptach -f <filename> to run the script on source files.
For more details, check
./scripts/checkpatch.pl --help
Quoted 31 lines · ???
checkpatch.pl is script to check your patch, not C file I think.
2015-11-17 13:01 GMT+08:00 Naver <[email protected]>:
Quoted 7 lines
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.plsortextable.cMust be run from the top-level dir. of a kernel treeQuoted 8 lines
Please let me know how to use this script.
Thanks._______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies--
My best regards to you.No System Is Safe!
mudongliang_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Try something like this,scripts/checkpatch.pl --file --no-tree yourfile.c
-madushan
Quoted 44 lines · Chinmay V S
One can use checkptach -f <filename> to run the script on source files.
For more details, check
./scripts/checkpatch.pl--helpQuoted 7 lines · ???
checkpatch.pl is script to check your patch, not C file I think.
2015-11-17 13:01 GMT+08:00 Naver <[email protected]>:
Quoted 4 lines
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.cQuoted 17 lines
Quoted 11 lines
Must be run from the top-level dir. of a kernel tree
Please let me know how to use this script.
Thanks._______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies--
My best regards to you.Quoted 7 lines
No System Is Safe!
mudongliang_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Signature · 11 lines
*Faithfully,* *Madushan Nishantha,* *Student at Faculty of Engineering,* *University of Peradeniya,* *Sri Lanka.* -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20151117/a152ed15/attachment.html
Quoted 5 lines · Naver
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.plsortextable.cMust 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20151117/271b2849/attachment.bin
Quoted 15 lines · Valdis.Kletnieks at vt.edu
Quoted 5 lines · Naver
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.plsortextable.cMust be run from the top-level dir. of a kernel tree$ cd ~/project/aosp/kernel/linux $ scripts/checkpatch.pl scripts/sortextable.cThough why you have a .c file in
scripts/is beyond me, it should probably be in some other directory.
Quoted 4 lines
_______________________________________________
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