Re: rsk7203_defconfig build error

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <lethal@...>, Adrian Bunk <bunk@...>
Cc: <linux-sh@...>, <linux-kernel@...>
Date: Tuesday, August 5, 2008 - 4:22 pm

At Tue, 5 Aug 2008 18:44:29 +0300,
Adrian Bunk wrote:

This functions is not defined sh2 and sh2a.
See gcc-4.3.1/gcc/config/sh/lib1funcs.asm

Sorry I forget report.

This patch not tested.
Please test and apply.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>

diff --git a/arch/sh/kernel/sh_ksyms_32.c b/arch/sh/kernel/sh_ksyms_32.c
index 8f91653..6e1b1c2 100644
--- a/arch/sh/kernel/sh_ksyms_32.c
+++ b/arch/sh/kernel/sh_ksyms_32.c
@@ -107,10 +107,12 @@ DECLARE_EXPORT(__movmemSI12_i4);
  * GCC >= 4.2 emits these for division, as do GCC 4.1.x versions of the ST
  * compiler which include backported patches.
  */
-DECLARE_EXPORT(__sdivsi3_i4i);
 DECLARE_EXPORT(__udiv_qrnnd_16);
+#if !defined(CONFIG_CPU_SH2)
+DECLARE_EXPORT(__sdivsi3_i4i);
 DECLARE_EXPORT(__udivsi3_i4i);
 #endif
+#endif
 #else /* GCC 3.x */
 DECLARE_EXPORT(__movstr_i4_even);
 DECLARE_EXPORT(__movstr_i4_odd);


-- 
Yoshinori Sato
<ysato@users.sourceforge.jp>
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
rsk7203_defconfig build error, Adrian Bunk, (Tue Aug 5, 11:44 am)
Re: rsk7203_defconfig build error, Yoshinori Sato, (Tue Aug 5, 4:22 pm)
Re: rsk7203_defconfig build error, Adrian Bunk, (Wed Aug 6, 1:29 pm)
Re: rsk7203_defconfig build error, Paul Mundt, (Wed Aug 6, 2:03 am)