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
  • Stanislaw Gruszka's avatar
    scripts: checkpatch: allow "case" macros · dc3f4dee
    Stanislaw Gruszka authored Oct 27, 2022
    Do not report errors like below:
    
    ./scripts/checkpatch.pl -f drivers/net/wireless/ath/ath10k/wmi.h
    
    ERROR: Macros with complex values should be enclosed in parentheses
    +#define C2S(x) case x: return #x
    
    since many "case ..." macros are already used by some in-kernel drivers.
    
    Link: https://lkml.kernel.org/r/20221027134334.164301-1-stf_xl@wp.pl
    
    
    Signed-off-by: default avatarStanislaw Gruszka <stf_xl@wp.pl>
    Acked-by: default avatarJoe Perches <joe@perches.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    dc3f4dee
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7