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
You need to sign in or sign up before continuing.
  • linux
  • include
  • linux
  • security.h
Find file BlameHistoryPermalink
  • Mark Salter's avatar
    c/r: prctl: fix build error for no-MMU case · be8cfc4a
    Mark Salter authored Sep 24, 2012
    Commit 1ad75b9e ("c/r: prctl: add minimal address test to
    PR_SET_MM") added some address checking to prctl_set_mm() used by
    checkpoint-restore.  This causes a build error for no-MMU systems:
    
       kernel/sys.c: In function 'prctl_set_mm':
       kernel/sys.c:1868:34: error: 'mmap_min_addr' undeclared (first use in this function)
    
    The test for mmap_min_addr doesn't make a lot of sense for no-MMU code
    as noted in commit 6e141546
    
     ("NOMMU: Optimise away the
    {dac_,}mmap_min_addr tests").
    
    This patch defines mmap_min_addr as 0UL in the no-MMU case so that the
    compiler will optimize away tests for "addr < mmap_min_addr".
    
    Signed-off-by: default avatarMark Salter <msalter@redhat.com>
    Reviewed-by: default avatarCyrill Gorcunov <gorcunov@openvz.org>
    Cc: <stable@vger.kernel.org>	[3.6.x]
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    be8cfc4a
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7