Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

powerpc/lib: only build ldstfp.o when CONFIG_PPC_FPU is set

The entire code in ldstfp.o is enclosed into #ifdef CONFIG_PPC_FPU,
so there is no point in building it when this config is not selected.

Fixes: cd64d1697cf0 ("powerpc: mtmsrd not defined")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Christophe Leroy and committed by
Michael Ellerman
3e3ebed3 f8e0d0fd

+2 -5
+2 -1
arch/powerpc/lib/Makefile
··· 49 49 obj-y += checksum_$(BITS).o checksum_wrappers.o \ 50 50 string_$(BITS).o 51 51 52 - obj-y += sstep.o ldstfp.o 52 + obj-y += sstep.o 53 + obj-$(CONFIG_PPC_FPU) += ldstfp.o 53 54 obj64-y += quad.o 54 55 55 56 obj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o
-4
arch/powerpc/lib/ldstfp.S
··· 18 18 #include <asm/asm-compat.h> 19 19 #include <linux/errno.h> 20 20 21 - #ifdef CONFIG_PPC_FPU 22 - 23 21 #define STKFRM (PPC_MIN_STKFRM + 16) 24 22 25 23 /* Get the contents of frN into *p; N is in r3 and p is in r4. */ ··· 239 241 MTMSRD(r6) 240 242 isync 241 243 blr 242 - 243 - #endif /* CONFIG_PPC_FPU */