• A
    update checkpatch.pl to version 0.19 · c45dcabd
    Andy Whitcroft 提交于
    This version is a bit of a whopper.  This version brings a few new checks,
    improvements to a number of checks mostly through modifications to the
    way types are parsed, several fixes to quote/comment handling, as well as
    the usual slew of fixes for false positives.
    
    Of note:
     - return is not a function and is now reported,
     - preprocessor directive detection is loosened to match C99 standard,
     - we now intuit new type modifiers, and
     - comment handling is much improved
    
    Andy Whitcroft (18):
          Version: 0.19
          fix up a couple of missing newlines in reports
          colon to parenthesis spacing varies on asm
          values: #include is a preprocessor statement
          quotes: fix single character quotes at line end
          add typedef exception for the non-pointer "function types"
          kerneldoc parameters must be on one line, relax line length
          types: word boundary is not always required
          improved #define bracketing reports
          uninitialized_var is an annotation not a function name
          possible types: add possible modifier handling
          possible types: fastcall is a type modifier
          types: unsigned is not a modifier on all types
          static/external initialisation to zero should allow modifiers
          checkpatch: fix recognition of preprocessor directives -- part 2
          comments: fix inter-hunk comment tracking
          return is not a function
          do not report include/asm/foo.h use in include/linux/foo.h
          return is not a function -- tighten test
    
    [jengelh@computergmbh.de: fix recognition of preprocessor directives]
    Signed-off-by: NAndy Whitcroft <apw@shadowen.org>
    Cc: Jan Engelhardt <jengelh@computergmbh.de>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    c45dcabd
checkpatch.pl 57.1 KB