powerpc/perf: fix missing is_sier_aviable() during build
Subsystems (2)
Madhavan Srinivasan
maintainerPATCH 1/1 powerpc/perf: fix missing is_sier_aviable() during build
Compilation error:
arch/powerpc/perf/perf_regs.c:80:undefined reference to `.is_sier_available'
Currently is_sier_available() is part of core-book3s.c. But then, core-book3s.c is added to build based on CONFIG_PPC_PERF_CTRS. A config with CONFIG_PERF_EVENTS and without CONFIG_PPC_PERF_CTRS will have a build break because of missing is_sier_available(). Patch adds is_sier_available() in asm/perf_event.h to fix the build break for configs missing CONFIG_PPC_PERF_CTRS.
--- arch/powerpc/include/asm/perf_event.h | 2 ++ 1 file changed, 2 insertions(+)
arch/powerpc/include/asm/perf_event.h +2 -0
@@ -12,6 +12,8 @@#ifdef CONFIG_PPC_PERF_CTRS #include <asm/perf_event_server.h> +#else +static inline bool is_sier_available (void ) {return false; }#endif #ifdef CONFIG_FSL_EMB_PERF_EVENT
Signature · 1 line
2.26.2
Michael Ellerman
AppliedQuoted 11 lines · Madhavan Srinivasan
Compilation error:
arch/powerpc/perf/perf_regs.c:80:undefined reference to `.is_sier_available'
Currently
is_sier_available()is part ofcore-book3s.c. But then,core-book3s.cis added to build based onCONFIG_PPC_PERF_CTRS. A config withCONFIG_PERF_EVENTSand withoutCONFIG_PPC_PERF_CTRSwill have a build break because of missingis_sier_available(). Patch addsis_sier_available()inasm/perf_event.hto fix the build break for configs missingCONFIG_PPC_PERF_CTRS.
Applied to powerpc/next.
[1/1] powerpc/perf: Fix missing is_sier_aviable() during build
https://git.kernel.org/powerpc/c/3c9450c053f88e525b2db1e6990cdf34d14e7696
cheers