xfrm: Const'ify selector args in xfrm_migrate paths.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5f803b58cd
commit
b4b7c0b389
|
@ -1493,7 +1493,7 @@ extern int km_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
|
||||||
extern struct xfrm_state * xfrm_migrate_state_find(struct xfrm_migrate *m);
|
extern struct xfrm_state * xfrm_migrate_state_find(struct xfrm_migrate *m);
|
||||||
extern struct xfrm_state * xfrm_state_migrate(struct xfrm_state *x,
|
extern struct xfrm_state * xfrm_state_migrate(struct xfrm_state *x,
|
||||||
struct xfrm_migrate *m);
|
struct xfrm_migrate *m);
|
||||||
extern int xfrm_migrate(struct xfrm_selector *sel, u8 dir, u8 type,
|
extern int xfrm_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
|
||||||
struct xfrm_migrate *m, int num_bundles,
|
struct xfrm_migrate *m, int num_bundles,
|
||||||
struct xfrm_kmaddress *k);
|
struct xfrm_kmaddress *k);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -2736,8 +2736,8 @@ EXPORT_SYMBOL_GPL(xfrm_audit_policy_delete);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_XFRM_MIGRATE
|
#ifdef CONFIG_XFRM_MIGRATE
|
||||||
static int xfrm_migrate_selector_match(struct xfrm_selector *sel_cmp,
|
static int xfrm_migrate_selector_match(const struct xfrm_selector *sel_cmp,
|
||||||
struct xfrm_selector *sel_tgt)
|
const struct xfrm_selector *sel_tgt)
|
||||||
{
|
{
|
||||||
if (sel_cmp->proto == IPSEC_ULPROTO_ANY) {
|
if (sel_cmp->proto == IPSEC_ULPROTO_ANY) {
|
||||||
if (sel_tgt->family == sel_cmp->family &&
|
if (sel_tgt->family == sel_cmp->family &&
|
||||||
|
@ -2757,7 +2757,7 @@ static int xfrm_migrate_selector_match(struct xfrm_selector *sel_cmp,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct xfrm_policy * xfrm_migrate_policy_find(struct xfrm_selector *sel,
|
static struct xfrm_policy * xfrm_migrate_policy_find(const struct xfrm_selector *sel,
|
||||||
u8 dir, u8 type)
|
u8 dir, u8 type)
|
||||||
{
|
{
|
||||||
struct xfrm_policy *pol, *ret = NULL;
|
struct xfrm_policy *pol, *ret = NULL;
|
||||||
|
@ -2897,7 +2897,7 @@ static int xfrm_migrate_check(const struct xfrm_migrate *m, int num_migrate)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int xfrm_migrate(struct xfrm_selector *sel, u8 dir, u8 type,
|
int xfrm_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
|
||||||
struct xfrm_migrate *m, int num_migrate,
|
struct xfrm_migrate *m, int num_migrate,
|
||||||
struct xfrm_kmaddress *k)
|
struct xfrm_kmaddress *k)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue