sh: fixup fpu.o compile order
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 15 Apr 2011 07:44:27 +0000 (16:44 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 18 Apr 2011 10:04:50 +0000 (19:04 +0900)
arch_ptrace() was modified to reference init_fpu() to fix up xstate
initialization, which overlooked the fact that there are configurations
that don't enable any of hard FPU support or emulation, resulting in
build errors on DSP parts.

Given that init_fpu() simply sets up the xstate slab cache and is
side-stepped entirely for the DSP case, we can simply always build in the
helper and fix up the references.

Reported-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: stable@kernel.org
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/Makefile

index d49c2135fd48085591c65078a0db7beeb5e993f5..ae95935d93cde7ace0d97584a34a0a95c87e8b85 100644 (file)
@@ -17,7 +17,5 @@ obj-$(CONFIG_ARCH_SHMOBILE)   += shmobile/
 
 obj-$(CONFIG_SH_ADC)           += adc.o
 obj-$(CONFIG_SH_CLK_CPG_LEGACY)        += clock-cpg.o
-obj-$(CONFIG_SH_FPU)           += fpu.o
-obj-$(CONFIG_SH_FPU_EMU)       += fpu.o
 
-obj-y  += irq/ init.o clock.o hwblk.o proc.o
+obj-y  += irq/ init.o clock.o fpu.o hwblk.o proc.o