Re: [PATCH kernel] powerpc/perf: Fix 32bit compile

2022-04-24 Thread Michael Ellerman
On Thu, 21 Apr 2022 12:57:56 +1000, Alexey Kardashevskiy wrote: > The "read_bhrb" global symbol is only called under CONFIG_PPC64 of > arch/powerpc/perf/core-book3s.c but it is compiled for both 32 and 64 bit > anyway (and LLVM fails to link this on 32bit). > > This fixes it by moving bhrb.o to

[PATCH kernel] powerpc/perf: Fix 32bit compile

2022-04-20 Thread Alexey Kardashevskiy
The "read_bhrb" global symbol is only called under CONFIG_PPC64 of arch/powerpc/perf/core-book3s.c but it is compiled for both 32 and 64 bit anyway (and LLVM fails to link this on 32bit). This fixes it by moving bhrb.o to obj64 targets. Signed-off-by: Alexey Kardashevskiy ---