Skip to contentSkip to conversation

a question about checkpatch.pl

kernelnewbies lx 4 participants 5 messages Jun 8, 2014 – Jun 9, 2014

lore
Share & tools
lore

lx

author
#0 lore raw

hi all:
I used the script of checkpatch.pl, but some error messages appeared.
##########################################
[root at localhost kernel_test]# perl checkpatch.pl -f task_01.c Nested quantifiers in regex; marked by <-- HERE in m/(\((?:[^\(\)]++ <-- HERE |(?-1))*\))/@checkpatch.pl line 444.
##########################################
This is something with checkpatch.pl ? How to fix it.

Thank you.

#1 lore raw

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

Quoted 15 lines · lx

hi all:
I used the script of checkpatch.pl, but some error messages appeared.
##########################################
[root at 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 at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Signature · 1 line
Peter
#2 lore raw
In reply to lx

Joe can help you with that.

Quoted 9 lines · lx

hi all:
I used the script of checkpatch.pl, but some error messages appeared.
##########################################
[root at 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.

Quoted 7 lines

Thank you.

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140608/52a81f64/attachment.html

#3 lore raw
Quoted 13 lines · anish singh

Joe can help you with that.

Quoted 8 lines · lx

hi all:
I used the script of checkpatch.pl, but some error messages appeared.
##########################################
[root at 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.

author
#4 lore raw

Thank you. I fix it.

?2014?6?9? 3:03:19,Joe Perches??:

Quoted 20 lines · anish singh
Quoted 13 lines

Joe can help you with that.

Quoted 8 lines · lx

hi all:
I used the script of checkpatch.pl, but some error messages appeared.
##########################################
[root at 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.