selftests/powerpc: Move pkey helpers to headers
authorSandipan Das <sandipan@linux.ibm.com>
Mon, 27 Jul 2020 04:00:35 +0000 (09:30 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Jul 2020 11:02:10 +0000 (21:02 +1000)
commit128d3d0210076232b7d54c361082c8ee17e4b669
treecfe19bd8b429a00be10024a91e2d28e3f61f8bd7
parent107c55005fbd5243ee31fb13b6f166cde9e3ade1
selftests/powerpc: Move pkey helpers to headers

This moves all the pkey-related helpers to a new header
file and also a helper to print error messages in signal
handlers to the existing utils header file.

Signed-off-by: Sandipan Das <sandipan@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/28e633fa9ec1a6500c12188e09ea1887b10a10c1.1595821792.git.sandipan@linux.ibm.com
tools/testing/selftests/powerpc/include/pkeys.h [new file with mode: 0644]
tools/testing/selftests/powerpc/include/utils.h
tools/testing/selftests/powerpc/mm/pkey_exec_prot.c