Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-coresight-backports
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • linux-coresight-backports
  • Repository
Switch branch/tag
  • linux-coresight-backports
  • mm
  • memblock.c
Find file BlameHistoryPermalink
  • Mathieu Malaterre's avatar
    mm/memblock: add missing include <linux/bootmem.h> · 69b5086b
    Mathieu Malaterre authored Jun 14, 2018
    Commit 26f09e9b ("mm/memblock: add memblock memory allocation apis")
    introduced two new function definitions:
    
      memblock_virt_alloc_try_nid_nopanic()
      memblock_virt_alloc_try_nid()
    
    Commit ea1f5f37 ("mm: define memblock_virt_alloc_try_nid_raw")
    introduced the following function definition:
    
      memblock_virt_alloc_try_nid_raw()
    
    This commit adds an includeof header file <linux/bootmem.h> to provide
    the missing function prototypes.  Silence the following gcc warning
    (W=1):
    
      mm/memblock.c:1334:15: warning: no previous prototype for `memblock_virt_alloc_try_nid_raw' [-Wmissing-prototypes]
      mm/memblock.c:1371:15: warning: no previous prototype for `memblock_virt_alloc_try_nid_nopanic' [-Wmissing-prototypes]
      mm/memblock.c:1407:15: warning: no previous prototype for `memblock_virt_alloc_try_nid' [-Wmissing-prototypes]
    
    Link: http://lkml.kernel.org/r/20180606194144.16990-1-malat@debian.org
    
    Signed-off-by: default avatarMathieu Malaterre <malat@debian.org>
    Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    69b5086b

Replace memblock.c

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.