perf: Always build the powerpc perf_arch_fetch_caller_regs version

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Sunday, April 4, 2010 - 12:59 pm

Gitweb:     http://git.kernel.org/linus/6e03bb5ad363fdbe4e1e227cfb78f7978c662e18
Commit:     6e03bb5ad363fdbe4e1e227cfb78f7978c662e18
Parent:     26d80aa782e708c380a47601779d42d30bf016d6
Author:     Frederic Weisbecker <fweisbec@gmail.com>
AuthorDate: Sat Apr 3 12:22:05 2010 +0200
Committer:  Frederic Weisbecker <fweisbec@gmail.com>
CommitDate: Sat Apr 3 12:42:00 2010 +0200

    perf: Always build the powerpc perf_arch_fetch_caller_regs version
    
    Now that software events use perf_arch_fetch_caller_regs() too, we
    need the powerpc version to be always built.
    
    Fixes the following build error:
    
    	(.text+0x3210): undefined reference to `perf_arch_fetch_caller_regs'
    	(.text+0x3324): undefined reference to `perf_arch_fetch_caller_regs'
    	(.text+0x33bc): undefined reference to `perf_arch_fetch_caller_regs'
    	(.text+0x33ec): undefined reference to `perf_arch_fetch_caller_regs'
    	(.text+0xd4a0): undefined reference to `perf_arch_fetch_caller_regs'
    	arch/powerpc/kernel/built-in.o:(.text+0xd528): more undefined references to `perf_arch_fetch_caller_regs' follow
    	make[1]: *** [.tmp_vmlinux1] Error 1
    	make: *** [sub-make] Error 2
    
    Reported-by: Michael Ellerman <michael@ellerman.id.au>
    Reported-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Paul Mackerras <paulus@samba.org>
---
 arch/powerpc/kernel/misc.S |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/kernel/misc.S b/arch/powerpc/kernel/misc.S
index b485a87..22e507c 100644
--- a/arch/powerpc/kernel/misc.S
+++ b/arch/powerpc/kernel/misc.S
@@ -128,7 +128,6 @@ _GLOBAL(__restore_cpu_power7)
 	/* place holder */
 	blr
 
-#ifdef CONFIG_EVENT_TRACING
 /*
  * Get a minimal set of registers for our caller's nth caller.
  * r3 = regs pointer, r5 = n.
@@ -154,4 +153,3 @@ _GLOBAL(perf_arch_fetch_caller_regs)
 	PPC_STL	r4,_NIP-STACK_FRAME_OVERHEAD(r3)
 	PPC_STL	r7,_LINK-STACK_FRAME_OVERHEAD(r3)
 	blr
-#endif /* CONFIG_EVENT_TRACING */
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
perf: Always build the powerpc perf_arch_fetch_caller_regs ..., Linux Kernel Mailing ..., (Sun Apr 4, 12:59 pm)