[IPSEC]: Unexport xfrm_replay_notify
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 9 Oct 2007 00:26:34 +0000 (17:26 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:54:55 +0000 (16:54 -0700)
Now that the only callers of xfrm_replay_notify are in xfrm, we can remove
the export.

This patch also removes xfrm_aevent_doreplay since it's now called in just
one spot.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
net/xfrm/xfrm_output.c
net/xfrm/xfrm_state.c

index a267725f9753d025b626ceb551d9a0bceb2d75ae..064a4ca63476a3bd9e223731275fc201768a7ca2 100644 (file)
@@ -1163,12 +1163,6 @@ static inline int xfrm_aevent_is_on(void)
        return ret;
 }
 
-static inline void xfrm_aevent_doreplay(struct xfrm_state *x)
-{
-       if (xfrm_aevent_is_on())
-               xfrm_replay_notify(x, XFRM_REPLAY_UPDATE);
-}
-
 #ifdef CONFIG_XFRM_MIGRATE
 static inline struct xfrm_algo *xfrm_algo_clone(struct xfrm_algo *orig)
 {
index 20e789d8c63e41a11fb1d7d91d97a2611a6d81da..40d75eccdddab669172ca6a8f6d844fe54f47091 100644 (file)
@@ -60,7 +60,8 @@ int xfrm_output(struct sk_buff *skb)
 
                if (x->type->flags & XFRM_TYPE_REPLAY_PROT) {
                        XFRM_SKB_CB(skb)->seq = ++x->replay.oseq;
-                       xfrm_aevent_doreplay(x);
+                       if (xfrm_aevent_is_on())
+                               xfrm_replay_notify(x, XFRM_REPLAY_UPDATE);
                }
 
                err = x->mode->output(x, skb);
index 0ecec34d265a390dbcb0be908b70f276511bda1f..a00745abaad3d7db30691e4b70a5937288988881 100644 (file)
@@ -1397,7 +1397,6 @@ void xfrm_replay_notify(struct xfrm_state *x, int event)
            !mod_timer(&x->rtimer, jiffies + x->replay_maxage))
                x->xflags &= ~XFRM_TIME_DEFER;
 }
-EXPORT_SYMBOL(xfrm_replay_notify);
 
 static void xfrm_replay_timer_handler(unsigned long data)
 {