Skip to contentSkip to conversation

hi, i want to use a script in kernel

DISCUSSION Naver 7 participants 7 messages Nov 17, 2015

lore
Share & tools
lore

Naver

author
#0 lore raw

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.

#1 lore raw

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.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.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

#2 lore raw
In reply to Naver

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.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.

_______________________________________________
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!
     mudongliang
#3 lore raw

One 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.pl sortextable.c Must be run from the top-level dir. of a kernel tree

Quoted 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

#4 lore raw

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 --help

Quoted 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.c

Quoted 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 
#5 lore raw
In reply to Naver
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.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.
-------------- 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

#6 lore raw
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.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.

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