Accompanying patch approved by author (me :-) ....
Roger.
----- Forwarded message from Francois Romieu <romieu@cogenit.fr> -----
From: Francois Romieu <romieu@cogenit.fr>
To: Rogier Wolff <R.E.Wolff@BitWizard.nl>
Date: Fri, 20 Sep 2002 22:11:38 +0200
Subject: [PATCH] 2.5.37 - xtime removal and __FUNCTION__ change
Greetings,
I hadn't done a compile fest on 2.5.x for quite some time. Interesting.
- __FUNCTION__ parsing doesn't seem to be welcome any more;
- xtime type has changed. do_gettimeofday() looks like the way to go.
Please forward to Linus if appropriate.
diff -urpN linux-2.5.37.orig/drivers/atm/firestream.c linux-2.5.37/drivers/atm/firestream.c
--- linux-2.5.37.orig/drivers/atm/firestream.c Fri Sep 20 20:45:33 2002
+++ linux-2.5.37/drivers/atm/firestream.c Fri Sep 20 21:44:28 2002
@@ -330,8 +330,8 @@ MODULE_PARM(fs_keystream, "i");
#define FS_DEBUG_QSIZE 0x00001000
-#define func_enter() fs_dprintk (FS_DEBUG_FLOW, "fs: enter " __FUNCTION__ "\n")
-#define func_exit() fs_dprintk (FS_DEBUG_FLOW, "fs: exit " __FUNCTION__ "\n")
+#define func_enter() fs_dprintk(FS_DEBUG_FLOW, "fs: enter %s\n", __FUNCTION__ )
+#define func_exit() fs_dprintk(FS_DEBUG_FLOW, "fs: exit %s\n", __FUNCTION__ )
struct fs_dev *fs_boards = NULL;
@@ -814,7 +814,7 @@ static void process_incoming (struct fs_
skb_put (skb, qe->p1 & 0xffff);
ATM_SKB(skb)->vcc = atm_vcc;
atomic_inc(&atm_vcc->stats->rx);
- skb->stamp = xtime;
+ do_gettimeofday(&skb->stamp);
fs_dprintk (FS_DEBUG_ALLOC, "Free rec-skb: %p (pushed)\n", skb);
atm_vcc->push (atm_vcc, skb);
fs_dprintk (FS_DEBUG_ALLOC, "Free rec-d: %p\n", pe);
----- End forwarded message -----
-- ** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2600998 ** *-- BitWizard writes Linux device drivers for any device you may have! --* * The Worlds Ecosystem is a stable system. Stable systems may experience * * excursions from the stable situation. We are currenly in such an * * excursion: The stable situation does not include humans. *************** - 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/