From: Andy Whitcroft Date: Tue, 10 Jan 2012 23:10:00 +0000 (-0800) Subject: checkpatch: ## is not a valid modifier X-Git-Tag: upstream/snapshot3+hdmi~8381^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89a883530fe79939384a6c6ed893c719762c7c9c;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git checkpatch: ## is not a valid modifier Inserting a # into the modifiers list will incorrectly add the null string to the modifiers list, leading to an infinite loop. As neither of these is a valid modifier form simply ignore them. Signed-off-by: Andy Whitcroft Reported-by: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 4c53d6f..b4390cf 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1224,7 +1224,9 @@ sub possible { case| else| asm|__asm__| - do + do| + \#| + \#\#| )(?:\s|$)| ^(?:typedef|struct|enum)\b )}x;