mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[XFRM]: constify 'struct xfrm_type'
Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
2216b48376
commit
533cb5b0a6
11 changed files with 22 additions and 22 deletions
|
|
@ -515,7 +515,7 @@ static void ah6_destroy(struct xfrm_state *x)
|
|||
kfree(ahp);
|
||||
}
|
||||
|
||||
static struct xfrm_type ah6_type =
|
||||
static const struct xfrm_type ah6_type =
|
||||
{
|
||||
.description = "AH6",
|
||||
.owner = THIS_MODULE,
|
||||
|
|
|
|||
|
|
@ -538,7 +538,7 @@ error:
|
|||
return err;
|
||||
}
|
||||
|
||||
static struct xfrm_type esp6_type =
|
||||
static const struct xfrm_type esp6_type =
|
||||
{
|
||||
.description = "ESP6",
|
||||
.owner = THIS_MODULE,
|
||||
|
|
|
|||
|
|
@ -453,7 +453,7 @@ error:
|
|||
goto out;
|
||||
}
|
||||
|
||||
static struct xfrm_type ipcomp6_type =
|
||||
static const struct xfrm_type ipcomp6_type =
|
||||
{
|
||||
.description = "IPCOMP6",
|
||||
.owner = THIS_MODULE,
|
||||
|
|
|
|||
|
|
@ -330,7 +330,7 @@ static void mip6_destopt_destroy(struct xfrm_state *x)
|
|||
{
|
||||
}
|
||||
|
||||
static struct xfrm_type mip6_destopt_type =
|
||||
static const struct xfrm_type mip6_destopt_type =
|
||||
{
|
||||
.description = "MIP6DESTOPT",
|
||||
.owner = THIS_MODULE,
|
||||
|
|
@ -462,7 +462,7 @@ static void mip6_rthdr_destroy(struct xfrm_state *x)
|
|||
{
|
||||
}
|
||||
|
||||
static struct xfrm_type mip6_rthdr_type =
|
||||
static const struct xfrm_type mip6_rthdr_type =
|
||||
{
|
||||
.description = "MIP6RT",
|
||||
.owner = THIS_MODULE,
|
||||
|
|
|
|||
|
|
@ -319,7 +319,7 @@ static void xfrm6_tunnel_destroy(struct xfrm_state *x)
|
|||
xfrm6_tunnel_free_spi((xfrm_address_t *)&x->props.saddr);
|
||||
}
|
||||
|
||||
static struct xfrm_type xfrm6_tunnel_type = {
|
||||
static const struct xfrm_type xfrm6_tunnel_type = {
|
||||
.description = "IP6IP6",
|
||||
.owner = THIS_MODULE,
|
||||
.proto = IPPROTO_IPV6,
|
||||
|
|
|
|||
Loading…
Reference in a new issue