OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
010050a
)
x86: Always inline ip_within_syscall_gap()
author
Peter Zijlstra
<peterz@infradead.org>
Thu, 24 Jun 2021 09:41:08 +0000
(11:41 +0200)
committer
Peter Zijlstra
<peterz@infradead.org>
Wed, 15 Sep 2021 13:51:47 +0000
(15:51 +0200)
vmlinux.o: warning: objtool: vc_switch_off_ist()+0x20: call to ip_within_syscall_gap.isra.0() leaves .noinstr.text section
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link:
https://lore.kernel.org/r/20210624095148.188166492@infradead.org
arch/x86/include/asm/ptrace.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/ptrace.h
b/arch/x86/include/asm/ptrace.h
index
b94f615
..
7036631
100644
(file)
--- a/
arch/x86/include/asm/ptrace.h
+++ b/
arch/x86/include/asm/ptrace.h
@@
-181,7
+181,7
@@
static inline bool any_64bit_mode(struct pt_regs *regs)
#define current_user_stack_pointer() current_pt_regs()->sp
#define compat_user_stack_pointer() current_pt_regs()->sp
-static inline bool ip_within_syscall_gap(struct pt_regs *regs)
+static
__always_
inline bool ip_within_syscall_gap(struct pt_regs *regs)
{
bool ret = (regs->ip >= (unsigned long)entry_SYSCALL_64 &&
regs->ip < (unsigned long)entry_SYSCALL_64_safe_stack);