selftest/powerpc/ptrace/core-pkey: Remove duplicate macros
authorMadhavan Srinivasan <maddy@linux.ibm.com>
Mon, 16 Dec 2024 16:02:55 +0000 (21:32 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Wed, 18 Dec 2024 08:10:12 +0000 (13:40 +0530)
commit026ac4dda8f666f737b375731e30ef8f5698b215
treec2312318b7bbe961da99f06145339c5cc1291bea
parent34064c8267a61063d684408db6ae78b571a9999d
selftest/powerpc/ptrace/core-pkey: Remove duplicate macros

./powerpc/ptrace/Makefile includes flags.mk. In flags.mk,
-I$(selfdir)/powerpc/include is always included as part of
CFLAGS. So it will pick up the "pkeys.h" defined in
powerpc/include.

core-pkey.c test has couple of macros defined which
are part of "pkeys.h" header file. Remove those
duplicates and include "pkeys.h"

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-1-maddy@linux.ibm.com
tools/testing/selftests/powerpc/ptrace/core-pkey.c