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
  • Nicolas Boichat's avatar
    checkpatch: warn if trace_printk and friends are called · 8020b253
    Nicolas Boichat authored Oct 15, 2020
    
    
    trace_printk is meant as a debugging tool, and should not be compiled into
    production code without specific debug Kconfig options enabled, or source
    code changes, as indicated by the warning that shows up on boot if any
    trace_printk is called:
    
     **   NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE   **
     **                                                      **
     ** trace_printk() being used. Allocating extra memory.  **
     **                                                      **
     ** This means that this is a DEBUG kernel and it is     **
     ** unsafe for production use.                           **
    
    Let's warn developers when they try to submit such a change.
    
    Signed-off-by: default avatarNicolas Boichat <drinkcat@chromium.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Joe Perches <joe@perches.com>
    Link: https://lkml.kernel.org/r/20200825193600.v2.1.I723c43c155f02f726c97501be77984f1e6bb740a@changeid
    
    
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    8020b253
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7