Context |
Check |
Description |
snowpatch_ozlabs/apply_patch |
warning
|
Failed to apply on branch powerpc/merge (1bc92fe3175eb26ff37e580c0383d7a9abe06835)
|
snowpatch_ozlabs/apply_patch |
warning
|
Failed to apply on branch powerpc/next (140777a3d8dfdb3d3f20ea7707c0f1c0ce1b0aa5)
|
snowpatch_ozlabs/apply_patch |
warning
|
Failed to apply on branch linus/master (d5eeab8d7e269e8cfc53b915bccd7bd30485bcbf)
|
snowpatch_ozlabs/apply_patch |
warning
|
Failed to apply on branch powerpc/fixes (5990cdee689c6885b27c6d969a3d58b09002b0bc)
|
snowpatch_ozlabs/apply_patch |
success
|
Successfully applied on branch linux-next (30e2206e11ce27ae910cc0dab21472429e400a87)
|
snowpatch_ozlabs/checkpatch |
success
|
total: 0 errors, 0 warnings, 0 checks, 17 lines checked
|
snowpatch_ozlabs/needsstable |
success
|
Patch fixes a commit that hasn't been released yet
|
@@ -16,15 +16,11 @@
#define fpregs fp_regs
#define si_pkey_offset 0x20
-#ifdef PKEY_DISABLE_ACCESS
#undef PKEY_DISABLE_ACCESS
-# define PKEY_DISABLE_ACCESS 0x3 /* disable read and write */
-#endif
+#define PKEY_DISABLE_ACCESS 0x3 /* disable read and write */
-#ifdef PKEY_DISABLE_WRITE
#undef PKEY_DISABLE_WRITE
-# define PKEY_DISABLE_WRITE 0x2
-#endif
+#define PKEY_DISABLE_WRITE 0x2
#define NR_PKEYS 32
#define NR_RESERVED_PKEYS_4K 27 /* pkey-0, pkey-1, exec-only-pkey
For powerpc, PKEY_DISABLE_WRITE and PKEY_DISABLE_ACCESS are redefined only if the system headers already define them. Otherwise, the test fails to compile due to their absence. This makes sure that they are always defined irrespective of them being present in the system headers. Fixes: 130f573c2a79 ("selftests/vm/pkeys: introduce powerpc support") Reported-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Signed-off-by: Sandipan Das <sandipan@linux.ibm.com> --- tools/testing/selftests/vm/pkey-powerpc.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)