[kernelnewbies]a question about checkpatch.pl
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. ########################################## This is something with checkpatch.pl ? How to fix it. Thank you.
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 -f /path/to/task_01.c On Sun, Jun 8, 2014 at 11:29 AM, lx <lxlenovostar@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 quantifiers in regex; marked by <-- HERE in m/(\((?:[^\(\)]++ <-- HERE |(?-1))*\))/ at checkpatch.pl line 444. ########################################## This is something with checkpatch.pl ? How to fix it.
Thank you.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Peter
Joe can help you with that. On Sun, Jun 8, 2014 at 7:29 AM, lx <lxlenovostar@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 quantifiers in regex; marked by <-- HERE in m/(\((?:[^\(\)]++ <-- HERE |(?-1))*\))/ at checkpatch.pl line 444. ########################################## This is something with checkpatch.pl ? How to fix it.
Thank you.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
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 <lxlenovostar@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 quantifiers in regex; marked by <-- HERE in m/(\((?:[^\(\)]++ <-- HERE |(?-1))*\))/ at checkpatch.pl line 444. ########################################## This is something with checkpatch.pl ? How to fix it.
Use a newer version of perl. 5.10 or higher.
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 <lxlenovostar@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 quantifiers in regex; marked by <-- HERE in m/(\((?:[^\(\)]++ <-- HERE |(?-1))*\))/ at checkpatch.pl line 444. ########################################## This is something with checkpatch.pl ? How to fix it.
Use a newer version of perl. 5.10 or higher.
participants (4)
-
anish singh -
Joe Perches -
lx -
Peter Senna Tschudin