Skip to content

Commit bb82c57

Browse files
aikmpe
authored andcommitted
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
1 parent c6cc9a8 commit bb82c57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/powerpc/perf/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
obj-y += callchain.o callchain_$(BITS).o perf_regs.o
44
obj-$(CONFIG_COMPAT) += callchain_32.o
55

6-
obj-$(CONFIG_PPC_PERF_CTRS) += core-book3s.o bhrb.o
6+
obj-$(CONFIG_PPC_PERF_CTRS) += core-book3s.o
77
obj64-$(CONFIG_PPC_PERF_CTRS) += ppc970-pmu.o power5-pmu.o \
88
power5+-pmu.o power6-pmu.o power7-pmu.o \
99
isa207-common.o power8-pmu.o power9-pmu.o \
10-
generic-compat-pmu.o power10-pmu.o
10+
generic-compat-pmu.o power10-pmu.o bhrb.o
1111
obj32-$(CONFIG_PPC_PERF_CTRS) += mpc7450-pmu.o
1212

1313
obj-$(CONFIG_PPC_POWERNV) += imc-pmu.o

0 commit comments

Comments
 (0)