[PATCH] jiffies must be unsigned long

From: Geert Uytterhoeven
Date: Tue Apr 06 2004 - 06:31:10 EST



jiffies must be unsigned long

--- linux-2.6.5/drivers/char/isicom.c.orig 2004-03-04 11:30:38.000000000 +0100
+++ linux-2.6.5/drivers/char/isicom.c 2004-04-02 10:59:33.000000000 +0200
@@ -129,6 +129,7 @@
unsigned int cmd, unsigned long arg)
{
unsigned int card, i, j, signature, status, portcount = 0;
+ unsigned long t;
unsigned short word_count, base;
bin_frame frame;
/* exec_record exec_rec; */
@@ -152,12 +153,12 @@

inw(base+0x8);

- for(i=jiffies+HZ/100;time_before(jiffies, i););
+ for(t=jiffies+HZ/100;time_before(jiffies, t););

outw(0,base+0x8); /* Reset */

for(j=1;j<=3;j++) {
- for(i=jiffies+HZ;time_before(jiffies, i););
+ for(t=jiffies+HZ;time_before(jiffies, t););
printk(".");
}
signature=(inw(base+0x4)) & 0xff;

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/