selftest/powerpc/ptrace: Cleanup duplicate macro definitions
authorMadhavan Srinivasan <maddy@linux.ibm.com>
Mon, 16 Dec 2024 16:02:57 +0000 (21:32 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Wed, 18 Dec 2024 08:10:12 +0000 (13:40 +0530)
commit65f5038352e8f635fb827f7482f1d08fae4d16bf
tree75667ce35e7a4bcc2e6fb4239bc860376abf03f4
parentb0e1b95b1597ad3d87ff91d52f6b67cc9423c31e
selftest/powerpc/ptrace: Cleanup duplicate macro definitions

Both core-pkey.c and ptrace-pkey.c tests have
similar macro definitions, move them to "pkeys.h"
and remove the macro definitions from the C file.

Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20241216160257.87252-3-maddy@linux.ibm.com
tools/testing/selftests/powerpc/include/pkeys.h
tools/testing/selftests/powerpc/ptrace/core-pkey.c
tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c