31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
From: James Clarke <jrtc27@jrtc27.com>
|
|
Date: Sun, 18 Feb 2018 15:54:44 +0000
|
|
Subject: powerpc/lib/Makefile: Don't pull in quad.o for 32-bit kernels
|
|
Origin: https://people.debian.org/~jrtc27/linux-ppc32/0002-powerpc-lib-Makefile-Don-t-pull-in-quad.o-for-32-bit.patch
|
|
|
|
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>
|
|
---
|
|
arch/powerpc/lib/Makefile | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
Index: linux/arch/powerpc/lib/Makefile
|
|
===================================================================
|
|
--- linux.orig/arch/powerpc/lib/Makefile
|
|
+++ linux/arch/powerpc/lib/Makefile
|
|
@@ -35,7 +35,7 @@ obj64-$(CONFIG_KPROBES_SANITY_TEST) += t
|
|
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
|