linux-sg2042/tools/testing/selftests/powerpc
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
..
alignment selftests/powerpc: Fix to use ucontext_t instead of struct ucontext 2018-02-13 22:44:18 +11:00
benchmarks selftest/powerpc: Add additional option to mmap_bench test 2018-01-21 23:37:43 +11:00
cache_shape License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
context_switch selftests: remove duplicated all and clean target 2017-01-05 13:41:35 -07:00
copyloops License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dscr powerpc updates for 4.15 2017-11-16 12:47:46 -08:00
include License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
lib selftests/powerpc: Add ptrace tests for VSX, VMX registers 2016-11-17 17:11:51 +11:00
math License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mm selftests/powerpc: Add a test of SEGV error behaviour 2018-01-03 16:49:24 +11:00
pmu License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
primitives selftests: remove duplicated all and clean target 2017-01-05 13:41:35 -07:00
ptrace selftests/powerpc: Fix build errors in powerpc ptrace selftests 2017-12-11 13:03:37 +11:00
scripts selftests/powerpc: Add script to test HMI functionality 2015-12-17 10:46:43 +11:00
signal License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
stringloops License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
switch_endian License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
syscalls License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
tm powerpc/selftests: Check endianness on trap in TM 2018-01-22 05:48:37 +11:00
vphn License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
harness.c selftest/powerpc: Fix false failures for skipped tests 2017-03-03 11:24:50 +11:00
utils.c selftests/powerpc: Refactor the AUXV routines 2017-03-20 19:02:49 +11:00