summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/ldstfp.S
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2019-05-13 10:00:15 +0000
committerMichael Ellerman <mpe@ellerman.id.au>2019-05-28 12:08:11 +1000
commit3e3ebed3fef4878e6f1680ff98088db1a9688831 (patch)
treec5150a76a853cb742ce695eff5fb36779c46beb2 /arch/powerpc/lib/ldstfp.S
parentf8e0d0fddf87f26aed576983f752329de4c0900f (diff)
downloadlinux-3e3ebed3fef4878e6f1680ff98088db1a9688831.tar.gz
linux-3e3ebed3fef4878e6f1680ff98088db1a9688831.tar.bz2
linux-3e3ebed3fef4878e6f1680ff98088db1a9688831.zip
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>
Diffstat (limited to 'arch/powerpc/lib/ldstfp.S')
-rw-r--r--arch/powerpc/lib/ldstfp.S4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/powerpc/lib/ldstfp.S b/arch/powerpc/lib/ldstfp.S
index 32e91994b6b2..e388a3127cb6 100644
--- a/arch/powerpc/lib/ldstfp.S
+++ b/arch/powerpc/lib/ldstfp.S
@@ -18,8 +18,6 @@
#include <asm/asm-compat.h>
#include <linux/errno.h>
-#ifdef CONFIG_PPC_FPU
-
#define STKFRM (PPC_MIN_STKFRM + 16)
/* Get the contents of frN into *p; N is in r3 and p is in r4. */
@@ -241,5 +239,3 @@ _GLOBAL(conv_dp_to_sp)
MTMSRD(r6)
isync
blr
-
-#endif /* CONFIG_PPC_FPU */