Loading include/net/xfrm.h +4 −4 Original line number Diff line number Diff line Loading @@ -202,7 +202,7 @@ struct xfrm_state /* Reference to data common to all the instances of this * transformer. */ struct xfrm_type *type; const struct xfrm_type *type; struct xfrm_mode *inner_mode; struct xfrm_mode *outer_mode; Loading Loading @@ -279,7 +279,7 @@ struct xfrm_state_afinfo { unsigned int proto; unsigned int eth_proto; struct module *owner; struct xfrm_type *type_map[IPPROTO_MAX]; const struct xfrm_type *type_map[IPPROTO_MAX]; struct xfrm_mode *mode_map[XFRM_MODE_MAX]; int (*init_flags)(struct xfrm_state *x); void (*init_tempsel)(struct xfrm_state *x, struct flowi *fl, Loading Loading @@ -322,8 +322,8 @@ struct xfrm_type u32 (*get_mtu)(struct xfrm_state *, int size); }; extern int xfrm_register_type(struct xfrm_type *type, unsigned short family); extern int xfrm_unregister_type(struct xfrm_type *type, unsigned short family); extern int xfrm_register_type(const struct xfrm_type *type, unsigned short family); extern int xfrm_unregister_type(const struct xfrm_type *type, unsigned short family); struct xfrm_mode { /* Loading net/ipv4/ah4.c +1 −1 Original line number Diff line number Diff line Loading @@ -300,7 +300,7 @@ static void ah_destroy(struct xfrm_state *x) } static struct xfrm_type ah_type = static const struct xfrm_type ah_type = { .description = "AH4", .owner = THIS_MODULE, Loading net/ipv4/esp4.c +1 −1 Original line number Diff line number Diff line Loading @@ -600,7 +600,7 @@ static int esp_init_state(struct xfrm_state *x) return err; } static struct xfrm_type esp_type = static const struct xfrm_type esp_type = { .description = "ESP4", .owner = THIS_MODULE, Loading net/ipv4/ipcomp.c +1 −1 Original line number Diff line number Diff line Loading @@ -437,7 +437,7 @@ static int ipcomp_init_state(struct xfrm_state *x) goto out; } static struct xfrm_type ipcomp_type = { static const struct xfrm_type ipcomp_type = { .description = "IPCOMP4", .owner = THIS_MODULE, .proto = IPPROTO_COMP, Loading net/ipv4/xfrm4_tunnel.c +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ static void ipip_destroy(struct xfrm_state *x) { } static struct xfrm_type ipip_type = { static const struct xfrm_type ipip_type = { .description = "IPIP", .owner = THIS_MODULE, .proto = IPPROTO_IPIP, Loading Loading
include/net/xfrm.h +4 −4 Original line number Diff line number Diff line Loading @@ -202,7 +202,7 @@ struct xfrm_state /* Reference to data common to all the instances of this * transformer. */ struct xfrm_type *type; const struct xfrm_type *type; struct xfrm_mode *inner_mode; struct xfrm_mode *outer_mode; Loading Loading @@ -279,7 +279,7 @@ struct xfrm_state_afinfo { unsigned int proto; unsigned int eth_proto; struct module *owner; struct xfrm_type *type_map[IPPROTO_MAX]; const struct xfrm_type *type_map[IPPROTO_MAX]; struct xfrm_mode *mode_map[XFRM_MODE_MAX]; int (*init_flags)(struct xfrm_state *x); void (*init_tempsel)(struct xfrm_state *x, struct flowi *fl, Loading Loading @@ -322,8 +322,8 @@ struct xfrm_type u32 (*get_mtu)(struct xfrm_state *, int size); }; extern int xfrm_register_type(struct xfrm_type *type, unsigned short family); extern int xfrm_unregister_type(struct xfrm_type *type, unsigned short family); extern int xfrm_register_type(const struct xfrm_type *type, unsigned short family); extern int xfrm_unregister_type(const struct xfrm_type *type, unsigned short family); struct xfrm_mode { /* Loading
net/ipv4/ah4.c +1 −1 Original line number Diff line number Diff line Loading @@ -300,7 +300,7 @@ static void ah_destroy(struct xfrm_state *x) } static struct xfrm_type ah_type = static const struct xfrm_type ah_type = { .description = "AH4", .owner = THIS_MODULE, Loading
net/ipv4/esp4.c +1 −1 Original line number Diff line number Diff line Loading @@ -600,7 +600,7 @@ static int esp_init_state(struct xfrm_state *x) return err; } static struct xfrm_type esp_type = static const struct xfrm_type esp_type = { .description = "ESP4", .owner = THIS_MODULE, Loading
net/ipv4/ipcomp.c +1 −1 Original line number Diff line number Diff line Loading @@ -437,7 +437,7 @@ static int ipcomp_init_state(struct xfrm_state *x) goto out; } static struct xfrm_type ipcomp_type = { static const struct xfrm_type ipcomp_type = { .description = "IPCOMP4", .owner = THIS_MODULE, .proto = IPPROTO_COMP, Loading
net/ipv4/xfrm4_tunnel.c +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ static void ipip_destroy(struct xfrm_state *x) { } static struct xfrm_type ipip_type = { static const struct xfrm_type ipip_type = { .description = "IPIP", .owner = THIS_MODULE, .proto = IPPROTO_IPIP, Loading