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
  • tools
  • testing
  • selftests
  • powerpc
  • alignment
  • alignment_handler.c
Find file BlameHistoryPermalink
  • Harish's avatar
    selftests/powerpc: Fix to use ucontext_t instead of struct ucontext · ecdf06e1
    Harish authored Feb 13, 2018
    
    
    With glibc 2.26 'struct ucontext' is removed to improve POSIX
    compliance, which breaks powerpc/alignment_handler selftest. Fix the
    test by using ucontext_t. Tested on ppc, works with older glibc
    versions as well.
    
    Fixes the following:
      alignment_handler.c: In function ‘sighandler’:
      alignment_handler.c:68:5: error: dereferencing pointer to incomplete type ‘struct ucontext’
        ucp->uc_mcontext.gp_regs[PT_NIP] += 4;
    
    Signed-off-by: default avatarHarish <harish@linux.vnet.ibm.com>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    ecdf06e1
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7