Skip to content

Commit

Permalink
x86/pkeys: Fix pkeys build breakage for some non-x86 arches
Browse files Browse the repository at this point in the history
Guenter Roeck reported breakage on the h8300 and c6x architectures (among
others) caused by the new memory protection keys syscalls.  This patch does
what Arnd suggested and adds them to kernel/sys_ni.c.

Fixes: a60f7b6 ("generic syscalls: Wire up memory protection keys syscalls")
Reported-and-tested-by: Guenter Roeck <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Cc: [email protected]
Cc: Dave Hansen <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
  • Loading branch information
davehansenintel authored and KAGA-KOKO committed Sep 13, 2016
1 parent 5f23f6d commit e275329
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kernel/sys_ni.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,3 +250,8 @@ cond_syscall(sys_execveat);

/* membarrier */
cond_syscall(sys_membarrier);

/* memory protection keys */
cond_syscall(sys_pkey_mprotect);
cond_syscall(sys_pkey_alloc);
cond_syscall(sys_pkey_free);

0 comments on commit e275329

Please sign in to comment.