Skip to content

Commit 9a93e29

Browse files
Brian GerstIngo Molnar
authored andcommitted
x86/syscall: Move sys_ni_syscall()
Move sys_ni_syscall() to kernel/process.c, and remove the now empty entry/common.c No functional changes. Signed-off-by: Brian Gerst <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Sohil Mehta <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Josh Poimboeuf <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 2183224 commit 9a93e29

File tree

3 files changed

+5
-41
lines changed

3 files changed

+5
-41
lines changed

arch/x86/entry/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@ KASAN_SANITIZE := n
77
UBSAN_SANITIZE := n
88
KCOV_INSTRUMENT := n
99

10-
CFLAGS_REMOVE_common.o = $(CC_FLAGS_FTRACE)
1110
CFLAGS_REMOVE_syscall_32.o = $(CC_FLAGS_FTRACE)
1211
CFLAGS_REMOVE_syscall_64.o = $(CC_FLAGS_FTRACE)
1312

14-
CFLAGS_common.o += -fno-stack-protector
1513
CFLAGS_syscall_32.o += -fno-stack-protector
1614
CFLAGS_syscall_64.o += -fno-stack-protector
1715

1816
obj-y := entry.o entry_$(BITS).o syscall_$(BITS).o
19-
obj-y += common.o
2017

2118
obj-y += vdso/
2219
obj-y += vsyscall/

arch/x86/entry/common.c

Lines changed: 0 additions & 38 deletions
This file was deleted.

arch/x86/kernel/process.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,3 +1063,8 @@ SYSCALL_DEFINE2(arch_prctl, int, option, unsigned long, arg2)
10631063

10641064
return -EINVAL;
10651065
}
1066+
1067+
SYSCALL_DEFINE0(ni_syscall)
1068+
{
1069+
return -ENOSYS;
1070+
}

0 commit comments

Comments
 (0)