powerpc: Make _ASM_NOKPROBE_SYMBOL a noop when KPROBES not defined
authorNicholas Piggin <npiggin@gmail.com>
Thu, 13 Oct 2016 02:07:14 +0000 (13:07 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 Nov 2016 00:11:51 +0000 (11:11 +1100)
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/ppc_asm.h

index bf9de5575ca97f667be74c5e9abf7a3084d62ab6..025833b8df9fb1a841888f418dd00ad70e146baf 100644 (file)
@@ -263,10 +263,14 @@ n:
  * 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)