Messages in this thread | | | Date | Mon, 16 May 2011 14:23:12 -0700 (PDT) | From | David Rientjes <> | Subject | Re: [PATCH 3/3] checkpatch.pl: Add check for current->comm references |
| |
On Fri, 13 May 2011, Michal Nazarewicz wrote:
> On Fri, 13 May 2011 08:33:39 +0200, Jiri Slaby wrote: > > This should be something like \b(current|task|tsk|t)->comm\b to catch > > also non-current comm accesses... > > Or \b(?:current|task|tsk|t)\s*->\s*comm\b. >
Add 'p' to the mix :)
$ grep -r "struct task_struct \*p[; ]" * | wc -l 119
| |