powerpc: make _ASM_NOKPROBE_SYMBOL a noop when KPROBES not defined
Nicholas Piggin
reviewerPATCH 1/1 powerpc: make _ASM_NOKPROBE_SYMBOL a noop when KPROBES not defined
---
The linker orphan sections error patch caught this
arch/powerpc/include/asm/ppc_asm.h | 4 ++++ 1 file changed, 4 insertions(+)
arch/powerpc/include/asm/ppc_asm.h +4 -0
@@ -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)
Signature · 1 line
2.9.3
Quoted 3 lines · Nicholas Piggin
Signed-off-by Nicholas Piggin <[email protected]>---
The linker orphan sections error patch caught this
Seems reasonable
Michael Ellerman
reviewerQuoted 3 lines · Nicholas Piggin
Signed-off-by Nicholas Piggin <[email protected]>---
The linker orphan sections error patch caught this
You mean with the orphan sections patch applied this breaks the build when KPROBES=n right?
cheers
Nicholas Piggin
reviewerQuoted 7 lines · On Fri, 14 Oct 2016 11:48:35 +1100 Michael Ellerman <[email protected]> wrote:
Quoted 3 lines · Nicholas Piggin
Signed-off-by Nicholas Piggin <[email protected]>---
The linker orphan sections error patch caught thisYou mean with the orphan sections patch applied this breaks the build when KPROBES=n right?
Yes. The linker orphan patch got picked up by one of the CI tests after I posted it, and pointed this out (I obviously didn't test KPROBES=n case).
Thanks,
Nick
Michael Ellerman
AppliedQuoted 1 line · Nicholas Piggin
Signed-off-by Nicholas Piggin <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/c0a5149105ab5f76f7c5a8fc2eb3d7
cheers