[PATCH] powerpc: make _ASM_NOKPROBE_SYMBOL a noop when KPROBES not defined
Nicholas Piggin
npiggin at gmail.com
Thu Oct 13 13:07:14 AEDT 2016
Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
---
The linker orphan sections error patch caught this
arch/powerpc/include/asm/ppc_asm.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/powerpc/include/asm/ppc_asm.h b/arch/powerpc/include/asm/ppc_asm.h
index c73750b..ceec199 100644
--- a/arch/powerpc/include/asm/ppc_asm.h
+++ b/arch/powerpc/include/asm/ppc_asm.h
@@ -265,10 +265,14 @@ GLUE(.,name):
* latter is for those that incdentially must be excluded from probing
* and allows them to be linked at more optimal location within text.
*/
+#ifdef CONFIG_KPROBES
#define _ASM_NOKPROBE_SYMBOL(entry) \
.pushsection "_kprobe_blacklist","aw"; \
PPC_LONG (entry) ; \
.popsection
+#else
+#define _ASM_NOKPROBE_SYMBOL(entry)
+#endif
#define FUNC_START(name) _GLOBAL(name)
#define FUNC_END(name)
--
2.9.3
More information about the Linuxppc-dev
mailing list