From: Andy Whitcroft Date: Tue, 10 Jan 2012 23:09:54 +0000 (-0800) Subject: checkpatch: correctly track the end of preprocessor commands in context X-Git-Tag: v3.3-rc1~113^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f74bd1942e04a0cedd1e9c8b331141e75add49c0;p=pandora-kernel.git checkpatch: correctly track the end of preprocessor commands in context When looking for a statement we currently run on through preprocessor commands. This means that a header file with just definitions is parsed over and over again combining all of the lines from the current line to the end of file leading to severe performance issues. Fix up context accumulation to track preprocessor commands and stop when reaching the end of them. At the same time vastly simplify the #define handling. Signed-off-by: Andy Whitcroft Cc: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed