Eric Dumazet 2d60abc2a9 [XFRM]: Do not define km_migrate() if !CONFIG_XFRM_MIGRATE
In include/net/xfrm.h we find :

#ifdef CONFIG_XFRM_MIGRATE
extern int km_migrate(struct xfrm_selector *sel, u8 dir, u8 type,
                      struct xfrm_migrate *m, int num_bundles);
...
#endif

We can also guard the function body itself in net/xfrm/xfrm_state.c
with same condition.

(Problem spoted by sparse checker)
make C=2 net/xfrm/xfrm_state.o
...
net/xfrm/xfrm_state.c:1765:5: warning: symbol 'km_migrate' was not declared. Should it be static?
...

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-04 00:47:03 -08:00
..
2007-12-16 13:35:51 -08:00
2007-12-20 13:59:39 -08:00
2007-12-20 14:01:35 -08:00
2007-12-20 14:00:51 -08:00
2007-12-20 14:03:11 -08:00
2007-11-29 18:08:48 -05:00
2007-12-07 04:31:47 -08:00
2007-12-20 14:02:40 -08:00
2007-12-20 14:03:52 -08:00
2007-12-14 13:54:37 -08:00
2008-01-04 00:47:02 -08:00
2005-04-16 15:20:36 -07:00