* hi, i want to use a script in kernel
@ 2015-11-17 5:01 Naver
2015-11-17 5:13 ` Nan Xiao
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Naver @ 2015-11-17 5:01 UTC (permalink / raw)
To: kernelnewbies
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* hi, i want to use a script in kernel
2015-11-17 5:01 hi, i want to use a script in kernel Naver
@ 2015-11-17 5:13 ` Nan Xiao
2015-11-17 5:16 ` 慕冬亮
2015-11-17 17:13 ` Valdis.Kletnieks at vt.edu
2 siblings, 0 replies; 7+ messages in thread
From: Nan Xiao @ 2015-11-17 5:13 UTC (permalink / raw)
To: kernelnewbies
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
On Tue, Nov 17, 2015 at 1:01 PM, Naver <earwigz@naver.com> wrote:
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* hi, i want to use a script in kernel
2015-11-17 5:01 hi, i want to use a script in kernel Naver
2015-11-17 5:13 ` Nan Xiao
@ 2015-11-17 5:16 ` 慕冬亮
2015-11-17 5:27 ` Chinmay V S
2015-11-17 17:13 ` Valdis.Kletnieks at vt.edu
2 siblings, 1 reply; 7+ messages in thread
From: 慕冬亮 @ 2015-11-17 5:16 UTC (permalink / raw)
To: kernelnewbies
checkpatch.pl is script to check your patch, not C file I think.
2015-11-17 13:01 GMT+08:00 Naver <earwigz@naver.com>:
> 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
--
My best regards to you.
No System Is Safe!
mudongliang
^ permalink raw reply [flat|nested] 7+ messages in thread
* hi, i want to use a script in kernel
2015-11-17 5:16 ` 慕冬亮
@ 2015-11-17 5:27 ` Chinmay V S
2015-11-17 5:31 ` NISHANTHA
0 siblings, 1 reply; 7+ messages in thread
From: Chinmay V S @ 2015-11-17 5:27 UTC (permalink / raw)
To: kernelnewbies
One can use checkptach -f <filename> to run the script on source files.
For more details, check
./scripts/checkpatch.pl --help
On Tue, Nov 17, 2015 at 10:46 AM, ??? <mudongliangabcd@gmail.com> wrote:
> checkpatch.pl is script to check your patch, not C file I think.
>
> 2015-11-17 13:01 GMT+08:00 Naver <earwigz@naver.com>:
>> 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
>
>
>
> --
> My best regards to you.
>
> No System Is Safe!
> mudongliang
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 7+ messages in thread
* hi, i want to use a script in kernel
2015-11-17 5:27 ` Chinmay V S
@ 2015-11-17 5:31 ` NISHANTHA
0 siblings, 0 replies; 7+ messages in thread
From: NISHANTHA @ 2015-11-17 5:31 UTC (permalink / raw)
To: kernelnewbies
Try something like this,
scripts/checkpatch.pl --file --no-tree yourfile.c
-madushan
On Tue, Nov 17, 2015 at 10:57 AM, Chinmay V S <cvs268@gmail.com> wrote:
> One can use checkptach -f <filename> to run the script on source files.
>
> For more details, check
> ./scripts/checkpatch.pl --help
>
> On Tue, Nov 17, 2015 at 10:46 AM, ??? <mudongliangabcd@gmail.com> wrote:
> > checkpatch.pl is script to check your patch, not C file I think.
> >
> > 2015-11-17 13:01 GMT+08:00 Naver <earwigz@naver.com>:
> >> 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
> >
> >
> >
> > --
> > My best regards to you.
> >
> > 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
>
--
*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
^ permalink raw reply [flat|nested] 7+ messages in thread
* hi, i want to use a script in kernel
2015-11-17 5:01 hi, i want to use a script in kernel Naver
2015-11-17 5:13 ` Nan Xiao
2015-11-17 5:16 ` 慕冬亮
@ 2015-11-17 17:13 ` Valdis.Kletnieks at vt.edu
2015-11-17 17:54 ` Bogicevic Sasa
2 siblings, 1 reply; 7+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2015-11-17 17:13 UTC (permalink / raw)
To: kernelnewbies
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.
-------------- 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* hi, i want to use a script in kernel
2015-11-17 17:13 ` Valdis.Kletnieks at vt.edu
@ 2015-11-17 17:54 ` Bogicevic Sasa
0 siblings, 0 replies; 7+ messages in thread
From: Bogicevic Sasa @ 2015-11-17 17:54 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-11-17 17:54 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-17 5:01 hi, i want to use a script in kernel Naver
2015-11-17 5:13 ` Nan Xiao
2015-11-17 5:16 ` 慕冬亮
2015-11-17 5:27 ` Chinmay V S
2015-11-17 5:31 ` NISHANTHA
2015-11-17 17:13 ` Valdis.Kletnieks at vt.edu
2015-11-17 17:54 ` Bogicevic Sasa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).