[linux-yocto] [PATCH] tracing/x86: Fix compilation failure when CONFIG_TRACE_IRQFLAGS is off
zhe.he at windriver.com
zhe.he at windriver.com
Sun Apr 28 03:52:08 PDT 2019
From: He Zhe <zhe.he at windriver.com>
b470fb994ebd ("tracing/x86: Save CR2 before tracing irqsoff on error_entry")
misses a "#ifdef".
Signed-off-by: He Zhe <zhe.he at windriver.com>
---
arch/x86/entry/common.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/entry/common.c b/arch/x86/entry/common.c
index 48a0a59..56d54d30 100644
--- a/arch/x86/entry/common.c
+++ b/arch/x86/entry/common.c
@@ -308,6 +308,7 @@ __visible void do_syscall_64(unsigned long nr, struct pt_regs *regs)
syscall_return_slowpath(regs);
}
+#ifdef CONFIG_TRACE_IRQFLAGS
extern void trace_hardirqs_on_caller(unsigned long caller_addr);
__visible void trace_hardirqs_on_caller_cr2(unsigned long caller_addr)
{
@@ -334,6 +335,7 @@ __visible void trace_hardirqs_off_caller_cr2(unsigned long caller_addr)
exception_exit(prev_state);
}
#endif
+#endif
#if defined(CONFIG_X86_32) || defined(CONFIG_IA32_EMULATION)
/*
--
2.7.4
More information about the linux-yocto
mailing list