Messages in this thread Patch in this message | | | From | Andy Whitcroft <> | Subject | [PATCH 03/11] checkpatch: ## is not a valid modifier | Date | Mon, 28 Nov 2011 15:42:45 +0000 |
| |
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.
Reported-by: Joe Perches <joe@perches.com> Signed-off-by: Andy Whitcroft <apw@canonical.com> --- scripts/checkpatch.pl | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index e07c36a..6dad5dd 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1223,7 +1223,9 @@ sub possible { case| else| asm|__asm__| - do + do| + \#| + \#\#| )(?:\s|$)| ^(?:typedef|struct|enum)\b )}x; -- 1.7.5.4
| |