diff options
| author | Frederic Weisbecker <[email protected]> | 2010-03-16 01:05:02 +0100 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2010-03-17 10:44:42 +0100 |
| commit | a6b84574eed7e4fd8cb8dac2d0926fe2cf34b941 (patch) | |
| tree | 98020cdcfbff562b3c9a0571b9f6350d2e9a41a0 /include/linux/debugobjects.h | |
| parent | 00909e955125e90a6ebb34671c56c4c851e62951 (diff) | |
perf: Fix unexported generic perf_arch_fetch_caller_regs
perf_arch_fetch_caller_regs() is exported for the overriden x86
version, but not for the generic weak version.
As a general rule, weak functions should not have their symbol
exported in the same file they are defined.
So let's export it on trace_event_perf.c as it is used by trace
events only.
This fixes:
ERROR: ".perf_arch_fetch_caller_regs" [fs/xfs/xfs.ko] undefined!
ERROR: ".perf_arch_fetch_caller_regs" [arch/powerpc/platforms/cell/spufs/spufs.ko] undefined!
-v2: And also only build it if trace events are enabled.
-v3: Fix changelog mistake
Reported-by: Stephen Rothwell <[email protected]>
Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Xiao Guangrong <[email protected]>
Cc: Paul Mackerras <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions