From patchwork Fri Apr 15 07:44:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 710251 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3F7iTR2003278 for ; Fri, 15 Apr 2011 07:44:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755337Ab1DOHo3 (ORCPT ); Fri, 15 Apr 2011 03:44:29 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:59981 "EHLO relmlor1.renesas.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754672Ab1DOHo2 (ORCPT ); Fri, 15 Apr 2011 03:44:28 -0400 Received: from relmlir2.idc.renesas.com ([10.200.68.152]) by relmlor1.idc.renesas.com ( SJSMS) with ESMTP id <0LJO009J8O632D00@relmlor1.idc.renesas.com> for linux-sh@vger.kernel.org; Fri, 15 Apr 2011 16:44:27 +0900 (JST) Received: from relmlac1.idc.renesas.com ([10.200.69.21]) by relmlir2.idc.renesas.com ( SJSMS) with ESMTP id <0LJO00FAWO63S4A0@relmlir2.idc.renesas.com> for linux-sh@vger.kernel.org; Fri, 15 Apr 2011 16:44:27 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id 6518F800A2; Fri, 15 Apr 2011 16:44:27 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id 5EFCB80086; Fri, 15 Apr 2011 16:44:27 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac1.idc.renesas.com with ESMTP id SAA29940; Fri, 15 Apr 2011 16:44:27 +0900 Date: Fri, 15 Apr 2011 16:44:27 +0900 X-IronPort-AV: E=Sophos; i="4.64,217,1301842800"; d="scan'208"; a="21804198" Received: from unknown (HELO PG10870.renesas.com) ([172.30.8.159]) by relmlii1.idc.renesas.com with ESMTP; Fri, 15 Apr 2011 16:44:27 +0900 Message-id: From: Kuninori Morimoto To: iwamatsu , Paul Mundt Cc: Magnus , Linux-SH In-reply-to: References: <1301398619-10753-1-git-send-email-iwamatsu@nigauri.org> Subject: [RFC][PATCH] sh: fixup fpu.o compile order User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-2022-JP-2?B?U2Fuag==?= =?ISO-2022-JP-2?B?GyQoRCtXGyhC?=) APEL/10.6 Emacs/23.2 (i386-mingw-nt5.1.2600) MULE/6.0 (HANACHIRUSATO) MIME-version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-type: text/plain; charset=US-ASCII Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 15 Apr 2011 07:44:30 +0000 (UTC) According to arch/sh/include/asm/fpu.h, "init_fpu" might be called in all environment. OTOH the other function on fpu.c are implemented under #ifdef CONFIG_SH_FPU. This mean fpu.c can be compiled in all environment. Signed-off-by: Kuninori Morimoto --- Paul We can not compile Migo-R or other board. because there is no "init_fpu" function without CONFIG_SH_FPU on current Kernel. Iwamatsu-san's patch or this patch is needed. I added [RFC] because I'm not familiar with FPU_EMU. arch/sh/kernel/cpu/Makefile | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/sh/kernel/cpu/Makefile b/arch/sh/kernel/cpu/Makefile index d49c213..944db0b 100644 --- a/arch/sh/kernel/cpu/Makefile +++ b/arch/sh/kernel/cpu/Makefile @@ -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 hwblk.o proc.o fpu.o