]> git.hungrycats.org Git - linux/commitdiff
[PATCH] sk98lin 64-bit divide fix
authorAndrew Morton <akpm@digeo.com>
Thu, 6 Mar 2003 09:13:36 +0000 (01:13 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 6 Mar 2003 09:13:36 +0000 (01:13 -0800)
This driver is doing a division on a 64 bit valus which is identical to
"jiffies" and is asking for __udiv64.  Cast the 64-bit value back to long.

drivers/net/sk98lin/h/skgepnm2.h

index ab55de77952ba92b5a1bc8c597775ce939e0c95f..80527c1d90f9eb46c34e517e58193aa7d5c2133c 100644 (file)
@@ -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
 
 /*