]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: Fix 32bit compile
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 21 Apr 2022 02:57:56 +0000 (12:57 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Apr 2022 13:26:47 +0000 (23:26 +1000)
commit69fecf99e9a4b7eeda872abbb9cd21935dcf7a51
treed2469acede7f4c701f740873d37a80fa6ea2ffeb
parent75d5897883ae7bdd55835521843356c53c756e5b
powerpc/perf: Fix 32bit compile

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 <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220421025756.571995-1-aik@ozlabs.ru
arch/powerpc/perf/Makefile