]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2022 07:14:40 +0000 (09:14 +0200)
commit4881f1599852ad42dd78621ebbb53ba9ced1e616
treeb640c09e26d79c259c736e3c61ca3006dc4a6d88
parent194a74c6c4f3eaf686dd18fbd2eca316c55c643c
powerpc/perf: Fix 32bit compile

[ Upstream commit 69fecf99e9a4b7eeda872abbb9cd21935dcf7a51 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/perf/Makefile