All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc: make _ASM_NOKPROBE_SYMBOL a noop when KPROBES not defined
@ 2016-10-13  2:07 Nicholas Piggin
  2016-10-13 10:42 ` Balbir Singh
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Nicholas Piggin @ 2016-10-13  2:07 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Nicholas Piggin

Signed-off-by: Nicholas Piggin <npiggin@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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] powerpc: make _ASM_NOKPROBE_SYMBOL a noop when KPROBES not defined
  2016-10-13  2:07 [PATCH] powerpc: make _ASM_NOKPROBE_SYMBOL a noop when KPROBES not defined Nicholas Piggin
@ 2016-10-13 10:42 ` Balbir Singh
  2016-10-14  0:48 ` Michael Ellerman
  2016-11-14 12:17 ` Michael Ellerman
  2 siblings, 0 replies; 5+ messages in thread
From: Balbir Singh @ 2016-10-13 10:42 UTC (permalink / raw)
  To: Nicholas Piggin, linuxppc-dev



On 13/10/16 13:07, Nicholas Piggin wrote:
> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
> ---
> The linker orphan sections error patch caught this

Seems reasonable

Acked-by: Balbir Singh <bsingharora@gmail.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] powerpc: make _ASM_NOKPROBE_SYMBOL a noop when KPROBES not defined
  2016-10-13  2:07 [PATCH] powerpc: make _ASM_NOKPROBE_SYMBOL a noop when KPROBES not defined Nicholas Piggin
  2016-10-13 10:42 ` Balbir Singh
@ 2016-10-14  0:48 ` Michael Ellerman
  2016-10-14  3:18   ` Nicholas Piggin
  2016-11-14 12:17 ` Michael Ellerman
  2 siblings, 1 reply; 5+ messages in thread
From: Michael Ellerman @ 2016-10-14  0:48 UTC (permalink / raw)
  To: Nicholas Piggin, linuxppc-dev; +Cc: Nicholas Piggin

Nicholas Piggin <npiggin@gmail.com> writes:
> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
> ---
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] powerpc: make _ASM_NOKPROBE_SYMBOL a noop when KPROBES not defined
  2016-10-14  0:48 ` Michael Ellerman
@ 2016-10-14  3:18   ` Nicholas Piggin
  0 siblings, 0 replies; 5+ messages in thread
From: Nicholas Piggin @ 2016-10-14  3:18 UTC (permalink / raw)
  To: Michael Ellerman; +Cc: linuxppc-dev

On Fri, 14 Oct 2016 11:48:35 +1100
Michael Ellerman <mpe@ellerman.id.au> wrote:

> Nicholas Piggin <npiggin@gmail.com> writes:
> > Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
> > ---
> > The linker orphan sections error patch caught this  
> 
> You 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: powerpc: make _ASM_NOKPROBE_SYMBOL a noop when KPROBES not defined
  2016-10-13  2:07 [PATCH] powerpc: make _ASM_NOKPROBE_SYMBOL a noop when KPROBES not defined Nicholas Piggin
  2016-10-13 10:42 ` Balbir Singh
  2016-10-14  0:48 ` Michael Ellerman
@ 2016-11-14 12:17 ` Michael Ellerman
  2 siblings, 0 replies; 5+ messages in thread
From: Michael Ellerman @ 2016-11-14 12:17 UTC (permalink / raw)
  To: Nicholas Piggin, linuxppc-dev; +Cc: Nicholas Piggin

On Thu, 2016-13-10 at 02:07:14 UTC, Nicholas Piggin wrote:
> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/c0a5149105ab5f76f7c5a8fc2eb3d7

cheers

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-14 12:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-13  2:07 [PATCH] powerpc: make _ASM_NOKPROBE_SYMBOL a noop when KPROBES not defined Nicholas Piggin
2016-10-13 10:42 ` Balbir Singh
2016-10-14  0:48 ` Michael Ellerman
2016-10-14  3:18   ` Nicholas Piggin
2016-11-14 12:17 ` Michael Ellerman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.