Skip to content

Commit eac0ca7

Browse files
hansendctorvalds
authored andcommitted
x86, pkeys: remove cruft from never-merged syscalls
pkey_set() and pkey_get() were syscalls present in older versions of the protection keys patches. The syscall number definitions were inadvertently left in place. This patch removes them. I did a git grep and verified that these are the last places in the tree that these appear, save for the protection_keys.c tests and Documentation. Those spots talk about functions called pkey_get/set() which are wrappers for the direct PKRU instructions, not the syscalls. Signed-off-by: Dave Hansen <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Fixes: f9afc61 ("x86: Wire up protection keys system calls") Signed-off-by: Linus Torvalds <[email protected]>
1 parent 7175790 commit eac0ca7

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

arch/x86/entry/syscalls/syscall_32.tbl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,5 +389,3 @@
389389
380 i386 pkey_mprotect sys_pkey_mprotect
390390
381 i386 pkey_alloc sys_pkey_alloc
391391
382 i386 pkey_free sys_pkey_free
392-
#383 i386 pkey_get sys_pkey_get
393-
#384 i386 pkey_set sys_pkey_set

arch/x86/entry/syscalls/syscall_64.tbl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,6 @@
338338
329 common pkey_mprotect sys_pkey_mprotect
339339
330 common pkey_alloc sys_pkey_alloc
340340
331 common pkey_free sys_pkey_free
341-
#332 common pkey_get sys_pkey_get
342-
#333 common pkey_set sys_pkey_set
343341

344342
#
345343
# x32-specific system call numbers start at 512 to avoid cache impact

0 commit comments

Comments
 (0)