From ce46638a2187b4f6776ec42ad51e81f4d518b6a2 Mon Sep 17 00:00:00 2001 From: James Clarke Date: Sun, 18 Feb 2018 15:54:44 +0000 Subject: [PATCH] powerpc/lib/Makefile: Don't pull in quad.o for 32-bit kernels The functions exported by quad.o are only used when guarded by __powerpc64__ and so are unused on 32-bit kernels. Moreover, their implementations make use of instructions which will cause an illegal instruction error on 32-bit processors, and are not accepted by the assembler for SPE processors. Fixes: 31bfdb036f12 ("powerpc: Use instruction emulation infrastructure to handle alignment faults") Signed-off-by: James Clarke Gbp-Pq: Topic bugfix/powerpc Gbp-Pq: Name powerpc-lib-makefile-don-t-pull-in-quad.o-for-32-bit.patch --- arch/powerpc/lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile index c55f9c27bf7..17fce3738d4 100644 --- a/arch/powerpc/lib/Makefile +++ b/arch/powerpc/lib/Makefile @@ -49,7 +49,7 @@ obj64-$(CONFIG_KPROBES_SANITY_TEST) += test_emulate_step.o \ obj-y += checksum_$(BITS).o checksum_wrappers.o \ string_$(BITS).o -obj-y += sstep.o ldstfp.o quad.o +obj-y += sstep.o ldstfp.o obj64-y += quad.o obj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o -- 2.30.2