Skip to contentSkip to conversation

dst_gc_timer initialization

PATCH In review Alex Pankratov 2 participants 2 messages Jan 20, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dst_gc_timer initialization

The second and third parameters of TIMER_INITIALIZER macro, which is used to initialize dst_gc_timer, are swapped. The patch puts them into the right order.

Alex

dst.c.patched renamed from dst.c +1 -1
@@ -40,7 +40,7 @@
 static void ___dst_free(struct dst_entry * dst);
 
 static struct timer_list dst_gc_timer =
-	TIMER_INITIALIZER(dst_run_gc, 0, DST_GC_MIN);
+	TIMER_INITIALIZER(dst_run_gc, DST_GC_MIN, 0);
 
 static void dst_run_gc(unsigned long dummy)
 {
#1 lore raw
Quoted 3 lines · On Mon, 19 Jan 2004 16:14:07 -0800 Alex Pankratov <[email protected]> wrote:

The second and third parameters of TIMER_INITIALIZER macro, which is used to initialize dst_gc_timer, are swapped. The patch puts them into the right order.

Patch applied, thanks Alex.