lkml.org 
[lkml]   [2011]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 03/11] checkpatch: ## is not a valid modifier
    Date
    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


    \
     
     \ /
      Last update: 2011-11-28 16:45    [W:0.021 / U:1.620 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site