Skip to content

Commit

Permalink
[XFRM]: Make sure xfrm_replay_timer_handler() is declared early enough.
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Mar 21, 2006
1 parent 8c29bfe commit 0ac8475
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/xfrm/xfrm_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ static void xfrm_timer_handler(unsigned long data)
xfrm_state_put(x);
}

static void xfrm_replay_timer_handler(unsigned long data);

struct xfrm_state *xfrm_state_alloc(void)
{
struct xfrm_state *x;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 0ac8475

Please sign in to comment.