powerpc/lib/Makefile: Don't pull in quad.o for 32-bit kernels
authorJames Clarke <jrtc27@jrtc27.com>
Sun, 18 Feb 2018 15:54:44 +0000 (15:54 +0000)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 26 Sep 2019 12:19:06 +0000 (13:19 +0100)
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 <jrtc27@jrtc27.com>
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

index c55f9c27bf7984704b80ac6fcbb986361f4ffc77..17fce3738d48c4ecb14a455259776ab93c7881d8 100644 (file)
@@ -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