diff options
author | Florian Westphal <fw@strlen.de> | 2017-02-07 14:52:30 +0100 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2017-02-09 10:22:17 +0100 |
commit | 960fdfdeb9e85a67bed136bc945c541ba61c2bdd (patch) | |
tree | b0f0894a34a442965d33f4374586c40fabdcf99e /include/net/xfrm.h | |
parent | 152bff377653047c2a69c226435e2c3fd316b592 (diff) | |
download | blackbird-obmc-linux-960fdfdeb9e85a67bed136bc945c541ba61c2bdd.tar.gz blackbird-obmc-linux-960fdfdeb9e85a67bed136bc945c541ba61c2bdd.zip |
xfrm: input: constify xfrm_input_afinfo
Nothing writes to these structures (the module owner was not used).
While at it, size xfrm_input_afinfo[] by the highest existing xfrm family
(INET6), not AF_MAX.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r-- | include/net/xfrm.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index d9a81dcef53e..da0e4dd653e2 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h @@ -349,13 +349,12 @@ struct xfrm_state_afinfo *xfrm_state_afinfo_get_rcu(unsigned int family); struct xfrm_input_afinfo { unsigned int family; - struct module *owner; int (*callback)(struct sk_buff *skb, u8 protocol, int err); }; -int xfrm_input_register_afinfo(struct xfrm_input_afinfo *afinfo); -int xfrm_input_unregister_afinfo(struct xfrm_input_afinfo *afinfo); +int xfrm_input_register_afinfo(const struct xfrm_input_afinfo *afinfo); +int xfrm_input_unregister_afinfo(const struct xfrm_input_afinfo *afinfo); void xfrm_state_delete_tunnel(struct xfrm_state *x); |