alistair23-linux/tools/testing/selftests/powerpc/alignment
Harish ecdf06e1ea selftests/powerpc: Fix to use ucontext_t instead of struct ucontext
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: Harish <harish@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-02-13 22:44:18 +11:00
..
.gitignore
alignment_handler.c selftests/powerpc: Fix to use ucontext_t instead of struct ucontext 2018-02-13 22:44:18 +11:00
copy_first_unaligned.c
copy_paste_unaligned_common.c
copy_paste_unaligned_common.h
copy_unaligned.c
Makefile selftests/powerpc: Add alignment handler selftest 2018-01-22 05:48:34 +11:00
paste_last_unaligned.c
paste_unaligned.c