]> 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)
commit363843fa921a7aca05ee88acddb0eb14e3846ce1
treed2469acede7f4c701f740873d37a80fa6ea2ffeb
parent29e97671d4b056bf44f96a1e84289fc4b8c286c1
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