Messages in this thread | | | Subject | Re: checkpatch problem | From | Joe Perches <> | Date | Thu, 23 Sep 2010 11:27:34 -0700 |
| |
On Thu, 2010-09-23 at 19:15 +0100, David Howells wrote: > The problem is that the second matcher (looking for " to \\n) matches on more > than just the logfunction line. Instrumenting the code supplied by your patch > thusly: [] > I suspect checkpatch doesn't handle #defines correctly, and goes beyond their > end looking for a semicolon.
Hi David.
Exactly right. Andy has a version in his testing directory that fixes this #define run-on block and speeds up checkpatch runtime rather a lot for certain files like .h files that have nothing but #defines.
Try applying my patch to this newer version:
http://www.kernel.org/pub/linux/kernel/people/apw/checkpatch/checkpatch.pl-testing
| |