xfrm: Pass km_event pointers around as const when possible.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -284,8 +284,8 @@ struct xfrm_policy_afinfo {
|
||||
|
||||
extern int xfrm_policy_register_afinfo(struct xfrm_policy_afinfo *afinfo);
|
||||
extern int xfrm_policy_unregister_afinfo(struct xfrm_policy_afinfo *afinfo);
|
||||
extern void km_policy_notify(struct xfrm_policy *xp, int dir, struct km_event *c);
|
||||
extern void km_state_notify(struct xfrm_state *x, struct km_event *c);
|
||||
extern void km_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c);
|
||||
extern void km_state_notify(struct xfrm_state *x, const struct km_event *c);
|
||||
|
||||
struct xfrm_tmpl;
|
||||
extern int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol);
|
||||
@@ -548,11 +548,11 @@ struct xfrm_migrate {
|
||||
struct xfrm_mgr {
|
||||
struct list_head list;
|
||||
char *id;
|
||||
int (*notify)(struct xfrm_state *x, struct km_event *c);
|
||||
int (*notify)(struct xfrm_state *x, const struct km_event *c);
|
||||
int (*acquire)(struct xfrm_state *x, struct xfrm_tmpl *, struct xfrm_policy *xp, int dir);
|
||||
struct xfrm_policy *(*compile_policy)(struct sock *sk, int opt, u8 *data, int len, int *dir);
|
||||
int (*new_mapping)(struct xfrm_state *x, xfrm_address_t *ipaddr, __be16 sport);
|
||||
int (*notify_policy)(struct xfrm_policy *x, int dir, struct km_event *c);
|
||||
int (*notify_policy)(struct xfrm_policy *x, int dir, const struct km_event *c);
|
||||
int (*report)(struct net *net, u8 proto, struct xfrm_selector *sel, xfrm_address_t *addr);
|
||||
int (*migrate)(struct xfrm_selector *sel, u8 dir, u8 type, struct xfrm_migrate *m, int num_bundles, struct xfrm_kmaddress *k);
|
||||
};
|
||||
|
Reference in New Issue
Block a user