Re: [kernelnewbies]a question about checkpatch.pl

2014-06-09 Thread lx
Thank you. I fix it. 于2014年6月9日 3:03:19,Joe Perches写到: On Sun, 2014-06-08 at 11:44 -0700, anish singh wrote: Joe can help you with that. On Sun, Jun 8, 2014 at 7:29 AM, lx lxlenovos...@gmail.com wrote: hi all: I used the script of checkpatch.pl, but some error messages appeared.

[kernelnewbies]a question about checkpatch.pl

2014-06-08 Thread lx
hi all: I used the script of checkpatch.pl, but some error messages appeared. ## [root@localhost kernel_test]# perl checkpatch.pl -f task_01.c Nested quantifiers in regex; marked by -- HERE in m/(\((?:[^\(\)]++ -- HERE |(?-1))*\))/ at checkpatch.pl line 444.

Re: [kernelnewbies]a question about checkpatch.pl

2014-06-08 Thread Peter Senna Tschudin
I see two problems: 1 - You are running as root. This do not cause the error message but it is way too dangerous. Don't compile, and test as root. 2 - The correct way of invoking checkpatch.pl is from the top-level dir. of a kernel tree. Example: cd /path/to/linux/source ./scripts/checkpatch.pl

Re: [kernelnewbies]a question about checkpatch.pl

2014-06-08 Thread anish singh
Joe can help you with that. On Sun, Jun 8, 2014 at 7:29 AM, lx lxlenovos...@gmail.com wrote: hi all: I used the script of checkpatch.pl, but some error messages appeared. ## [root@localhost kernel_test]# perl checkpatch.pl -f task_01.c Nested

Re: [kernelnewbies]a question about checkpatch.pl

2014-06-08 Thread Joe Perches
On Sun, 2014-06-08 at 11:44 -0700, anish singh wrote: Joe can help you with that. On Sun, Jun 8, 2014 at 7:29 AM, lx lxlenovos...@gmail.com wrote: hi all: I used the script of checkpatch.pl, but some error messages appeared. ##