Re: [2.5] Update sk98lin driver

Andrew Morton (akpm@digeo.com)
Sun, 4 May 2003 14:50:38 -0700


Martin Schlemmer <azarah@gentoo.org> wrote:
>
> Hi
>
> I have a 3Com 3c940 gigabit LOM, that is basically a
> SysKonnect chipset card. Here are later drivers that
> do support it:
>
> ftp://ftp.asus.com.tw/pub/ASUS/lan/3com/3c940/041_Linux.zip
>
> The current one in the 2.5 tree was last updated for newer
> chipsets in 2001, while the new was updated February this
> year.
>
> Anyhow, I got the new to compile, and fixed the few irqreturn_t
> calls, and some other 2.5 changes I knew about.
>
> Now the problem is that if I try to load it, I get this:
>
> -----------------------------------------
> sk98lin: Unknown symbol __udivdi3
> -----------------------------------------
>
> Meaning it linked with libgcc_s.so. Any ideas why ?
>

This was the fix for the in-kernel driver, so it'll presumably
fix the updated driver.

diff -puN drivers/net/sk98lin/h/skgepnm2.h~sk98-build-fix drivers/net/sk98lin/h/skgepnm2.h
--- 25/drivers/net/sk98lin/h/skgepnm2.h~sk98-build-fix Thu Mar 6 16:18:07 2003
+++ 25-akpm/drivers/net/sk98lin/h/skgepnm2.h Thu Mar 6 16:18:07 2003
@@ -341,7 +341,7 @@ typedef struct s_PnmiStatAddr {
#if SK_TICKS_PER_SEC == 100
#define SK_PNMI_HUNDREDS_SEC(t) (t)
#else
-#define SK_PNMI_HUNDREDS_SEC(t) (((t) * 100) / (SK_TICKS_PER_SEC))
+#define SK_PNMI_HUNDREDS_SEC(t) ((((long)t) * 100) / (SK_TICKS_PER_SEC))
#endif

/*

_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/