lkml.org 
[lkml]   [2008]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 22/23] checkpatch: possible types -- known modifiers cannot be types
    Date
    Ensure we do not inadvertantly load known modifiers up as possible types.

    Signed-off-by: Andy Whitcroft <apw@shadowen.org>
    ---
    scripts/checkpatch.pl | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
    index 6d07b67..9c20916 100755
    --- a/scripts/checkpatch.pl
    +++ b/scripts/checkpatch.pl
    @@ -847,7 +847,7 @@ sub possible {
    my ($possible, $line) = @_;

    print "CHECK<$possible> ($line)\n" if ($dbg_possible > 1);
    - if ($possible !~ /^(?:$Storage|$Type|DEFINE_\S+)$/ &&
    + if ($possible !~ /^(?:$Modifier|$Storage|$Type|DEFINE_\S+)$/ &&
    $possible ne 'goto' && $possible ne 'return' &&
    $possible ne 'case' && $possible ne 'else' &&
    $possible ne 'asm' && $possible ne '__asm__' &&
    --
    1.5.6.rc0.140.ga9675


    \
     
     \ /
      Last update: 2008-06-12 14:25    [W:0.019 / U:178.068 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site