Re: [PATCH] powerpc: ignore the pkey system calls for now

2016-10-18 Thread Balbir Singh


On 18/10/16 09:33, Stephen Rothwell wrote:
> Eliminates warning messages:
> 
> :1316:2: warning: #warning syscall pkey_mprotect not implemented 
> [-Wcpp]
> :1319:2: warning: #warning syscall pkey_alloc not implemented [-Wcpp]
> :1322:2: warning: #warning syscall pkey_free not implemented [-Wcpp]
> 
> Hopefully we will remember to revert this commit if we ever implement
> them.
> 
> Signed-off-by: Stephen Rothwell 

That makes sense for now

Acked-by: Balbir Singh 


[PATCH] powerpc: ignore the pkey system calls for now

2016-10-17 Thread Stephen Rothwell
Eliminates warning messages:

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

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

Signed-off-by: Stephen Rothwell 
---
 arch/powerpc/include/asm/unistd.h | 4 
 1 file changed, 4 insertions(+)

diff --git a/arch/powerpc/include/asm/unistd.h 
b/arch/powerpc/include/asm/unistd.h
index cf12c580f6b2..e8cdfec8d512 100644
--- a/arch/powerpc/include/asm/unistd.h
+++ b/arch/powerpc/include/asm/unistd.h
@@ -16,6 +16,10 @@
 
 #define __NR__exit __NR_exit
 
+#define __IGNORE_pkey_mprotect
+#define __IGNORE_pkey_alloc
+#define __IGNORE_pkey_free
+
 #ifndef __ASSEMBLY__
 
 #include 
-- 
2.9.3

-- 
Cheers,
Stephen Rothwell