Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • scripts
  • checkpatch.pl
Find file BlameHistoryPermalink
  • Joe Perches's avatar
    checkpatch: improve the indented label test · 69078651
    Joe Perches authored Jun 30, 2021
    checkpatch identifies a label only when a terminating colon
    immediately follows an identifier.
    
    Bitfield definitions can appear to be labels so ignore any
    spaces between the identifier terminating colon and any digit
    that may be used to define a bitfield length.
    
    Miscellanea:
    
    o Improve the initial checkpatch comment
    o Use the more typical '&&' instead of 'and'
    o Require the initial label character to be a non-digit
      (Can't use $Ident here because $Ident allows ## concatenation)
    o Use $sline instead of $line to ignore comments
    o Use '$sline !~ /.../' instead of '!($line =~ /.../)'
    
    Link: https://lkml.kernel.org/r/b54d673e7cde7de5de0c9ba4dd57dd0858580ca4.camel@perches.com
    
    
    Signed-off-by: default avatarJoe Perches <joe@perches.com>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: Manikishan Ghantasala <manikishanghantasala@gmail.com>
    Cc: Alex Elder <elder@ieee.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    69078651
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7