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
  • kernel
  • panic.c
Find file BlameHistoryPermalink
  • Josh Poimboeuf's avatar
    lib/bug.c: use common WARN helper · 2553b67a
    Josh Poimboeuf authored Mar 17, 2016
    
    
    The traceoff_on_warning option doesn't have any effect on s390, powerpc,
    arm64, parisc, and sh because there are two different types of WARN
    implementations:
    
    1) The above mentioned architectures treat WARN() as a special case of a
       BUG() exception.  They handle warnings in report_bug() in lib/bug.c.
    
    2) All other architectures just call warn_slowpath_*() directly.  Their
       warnings are handled in warn_slowpath_common() in kernel/panic.c.
    
    Support traceoff_on_warning on all architectures and prevent any future
    divergence by using a single common function to emit the warning.
    
    Also remove the '()' from '%pS()', because the parentheses look funky:
    
      [   45.607629] WARNING: at /root/warn_mod/warn_mod.c:17 .init_dummy+0x20/0x40 [warn_mod]()
    
    Reported-by: default avatarChunyu Hu <chuhu@redhat.com>
    Signed-off-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
    Acked-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
    Tested-by: default avatarPrarit Bhargava <prarit@redhat.com>
    Acked-by: default avatarPrarit Bhargava <prarit@redhat.com>
    Acked-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    2553b67a
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7