kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* [kernelnewbies]a question about checkpatch.pl
@ 2014-06-08 14:29 lx
  2014-06-08 15:40 ` Peter Senna Tschudin
  2014-06-08 18:44 ` anish singh
  0 siblings, 2 replies; 5+ messages in thread
From: lx @ 2014-06-08 14:29 UTC (permalink / raw)
  To: kernelnewbies

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [kernelnewbies]a question about checkpatch.pl
  2014-06-08 14:29 [kernelnewbies]a question about checkpatch.pl lx
@ 2014-06-08 15:40 ` Peter Senna Tschudin
  2014-06-08 18:44 ` anish singh
  1 sibling, 0 replies; 5+ messages in thread
From: Peter Senna Tschudin @ 2014-06-08 15:40 UTC (permalink / raw)
  To: kernelnewbies

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



-- 
Peter

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [kernelnewbies]a question about checkpatch.pl
  2014-06-08 14:29 [kernelnewbies]a question about checkpatch.pl lx
  2014-06-08 15:40 ` Peter Senna Tschudin
@ 2014-06-08 18:44 ` anish singh
  2014-06-08 19:03   ` Joe Perches
  1 sibling, 1 reply; 5+ messages in thread
From: anish singh @ 2014-06-08 18:44 UTC (permalink / raw)
  To: kernelnewbies

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 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140608/52a81f64/attachment.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [kernelnewbies]a question about checkpatch.pl
  2014-06-08 18:44 ` anish singh
@ 2014-06-08 19:03   ` Joe Perches
  2014-06-09 14:44     ` lx
  0 siblings, 1 reply; 5+ messages in thread
From: Joe Perches @ 2014-06-08 19:03 UTC (permalink / raw)
  To: 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 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [kernelnewbies]a question about checkpatch.pl
  2014-06-08 19:03   ` Joe Perches
@ 2014-06-09 14:44     ` lx
  0 siblings, 0 replies; 5+ messages in thread
From: lx @ 2014-06-09 14:44 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-09 14:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-08 14:29 [kernelnewbies]a question about checkpatch.pl lx
2014-06-08 15:40 ` Peter Senna Tschudin
2014-06-08 18:44 ` anish singh
2014-06-08 19:03   ` Joe Perches
2014-06-09 14:44     ` lx

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