[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>

authored by Eric Dumazet and committed by David S. Miller 2d60abc2 76975f8a

+2
+2
net/xfrm/xfrm_state.c
··· 1749 1749 } 1750 1750 EXPORT_SYMBOL(km_policy_expired); 1751 1751 1752 + #ifdef CONFIG_XFRM_MIGRATE 1752 1753 int km_migrate(struct xfrm_selector *sel, u8 dir, u8 type, 1753 1754 struct xfrm_migrate *m, int num_migrate) 1754 1755 { ··· 1769 1768 return err; 1770 1769 } 1771 1770 EXPORT_SYMBOL(km_migrate); 1771 + #endif 1772 1772 1773 1773 int km_report(u8 proto, struct xfrm_selector *sel, xfrm_address_t *addr) 1774 1774 {