From: James Clarke Date: Sun, 18 Feb 2018 15:54:44 +0000 (+0000) Subject: powerpc/lib/Makefile: Don't pull in quad.o for 32-bit kernels X-Git-Tag: archive/raspbian/4.18.10-2+rpi1^2~81 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a6782f3a4d152e7de704eb160357dfaa8a70e94d;p=linux.git 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 --- diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile index d0ca13ad823..a0f96931edd 100644 --- a/arch/powerpc/lib/Makefile +++ b/arch/powerpc/lib/Makefile @@ -35,7 +35,7 @@ obj64-$(CONFIG_KPROBES_SANITY_TEST) += test_emulate_step.o obj-y += checksum_$(BITS).o checksum_wrappers.o \ string_$(BITS).o memcmp_$(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