[XFRM]: Make sure xfrm_replay_timer_handler() is declared early enough.
authorDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 03:18:23 +0000 (19:18 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 03:18:23 +0000 (19:18 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_state.c

index 8df547d7d61cd147e12cd7c5b667ec8e7f4cf4b9..cd1d5e11ee748649f81a4793fcf198562a03a22b 100644 (file)
@@ -179,6 +179,8 @@ out:
        xfrm_state_put(x);
 }
 
+static void xfrm_replay_timer_handler(unsigned long data);
+
 struct xfrm_state *xfrm_state_alloc(void)
 {
        struct xfrm_state *x;
@@ -815,11 +817,9 @@ void xfrm_replay_notify(struct xfrm_state *x, int event)
        c.data.aevent = event;
        km_state_notify(x, &c);
 
-resched:
        if (x->replay_maxage &&
            !mod_timer(&x->rtimer, jiffies + x->replay_maxage))
                xfrm_state_hold(x);
-
 }
 
 static void xfrm_replay_timer_handler(unsigned long data)