Skip to contentSkip to conversation

powerpc: ignore the pkey system calls for now

PATCH Applied Stephen Rothwell 3 participants 3 messages Oct 17, 2016 – Oct 21, 2016 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: ignore the pkey system calls for now

Eliminates warning messages:

<stdin>:1316:2: warning: #warning syscall pkey_mprotect not implemented [-Wcpp] <stdin>:1319:2: warning: #warning syscall pkey_alloc not implemented [-Wcpp] <stdin>:1322:2: warning: #warning syscall pkey_free not implemented [-Wcpp]

Hopefully we will remember to revert this commit if we ever implement them.

---
 arch/powerpc/include/asm/unistd.h | 4 ++++
 1 file changed, 4 insertions(+)
arch/powerpc/include/asm/unistd.h +4 -0
index cf12c580f6b2..e8cdfec8d512 100644
@@ -16,6 +16,10 @@
 
 #define __NR__exit __NR_exit
 
+#define __IGNORE_pkey_mprotect
+#define __IGNORE_pkey_alloc
+#define __IGNORE_pkey_free
+
 #ifndef __ASSEMBLY__
 
 #include <linux/types.h>
Signature · 5 lines
2.9.3

-- 
Cheers,
Stephen Rothwell
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Stephen Rothwell

Eliminates warning messages:

<stdin>:1316:2: warning: #warning syscall pkey_mprotect not implemented [-Wcpp] <stdin>:1319:2: warning: #warning syscall pkey_alloc not implemented [-Wcpp] <stdin>:1322:2: warning: #warning syscall pkey_free not implemented [-Wcpp]

Hopefully we will remember to revert this commit if we ever implement them.

That makes sense for now

#2 lore raw
In reply to Stephen Rothwell
Quoted 11 lines · Stephen Rothwell

Eliminates warning messages:

<stdin>:1316:2: warning: #warning syscall pkey_mprotect not implemented [-Wcpp] <stdin>:1319:2: warning: #warning syscall pkey_alloc not implemented [-Wcpp] <stdin>:1322:2: warning: #warning syscall pkey_free not implemented [-Wcpp]

Hopefully we will remember to revert this commit if we ever implement them.

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/78914ff0843623ee6dbeae92fa0bb8

cheers