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
  • Andi Kleen's avatar
    Eliminate thousands of warnings with gcc 3.2 build · 57adc4d2
    Andi Kleen authored May 06, 2009
    
    
    When building with gcc 3.2 I get thousands of warnings such as
    
    include/linux/gfp.h: In function `allocflags_to_migratetype':
    include/linux/gfp.h:105: warning: null format string
    
    due to passing a NULL format string to warn_slowpath() in
    
    #define __WARN()		warn_slowpath(__FILE__, __LINE__, NULL)
    
    Split this case out into a separate call.  This also shrinks the kernel
    slightly:
    
              text    data     bss     dec     hex filename
           4802274  707668  712704 6222646  5ef336 vmlinux
              text    data     bss     dec     hex filename
           4799027  703572  712704 6215303  5ed687 vmlinux
    
    due to removeing one argument from the commonly-called __WARN().
    
    [akpm@linux-foundation.org: reduce scope of `empty']
    Acked-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
    Acked-by: default avatarJohannes Weiner <hannes@cmpxchg.org>
    Acked-by: default avatarArjan van de Ven <arjan@linux.intel.com>
    Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
    Cc: Hugh Dickins <hugh@veritas.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    57adc4d2
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7