From: Andy Whitcroft Date: Tue, 6 Jan 2009 22:41:20 +0000 (-0800) Subject: checkpatch: comment ends inside strings is most likely not an open comment X-Git-Tag: v2.6.29-rc1~349 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fae17daed7312bae708df0cce7e93971308698b5;p=pandora-kernel.git checkpatch: comment ends inside strings is most likely not an open comment When we are detecting whether a comment is open when we start a hunk we check for the first comment edge in the hunk and assume its inverse. However if the hunk contains something like below, then we will assume that a comment was open. Update this heuristic to see if the comment edge is obviously within double quotes and ignore it if so: foo(" */); Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed