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 bf9de55..025833b 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)