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 selftests/powerpc: Test unaligned copy and paste 2016-07-05 23:49:51 +10:00
Makefile selftests/powerpc: Add alignment handler selftest 2018-01-22 05:48:34 +11:00
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 selftests/powerpc: Test unaligned copy and paste 2016-07-05 23:49:51 +10:00
copy_paste_unaligned_common.c selftests/powerpc: Test unaligned copy and paste 2016-07-05 23:49:51 +10:00
copy_paste_unaligned_common.h selftests/powerpc: Test unaligned copy and paste 2016-07-05 23:49:51 +10:00
copy_unaligned.c selftests/powerpc: Test unaligned copy and paste 2016-07-05 23:49:51 +10:00
paste_last_unaligned.c selftests/powerpc: Test unaligned copy and paste 2016-07-05 23:49:51 +10:00
paste_unaligned.c selftests/powerpc: Test unaligned copy and paste 2016-07-05 23:49:51 +10:00