[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:
Eric Dumazet 2008-01-30 19:11:50 -08:00 • committed by David S. Miller
commit 533cb5b0a6
11 changed files with 22 additions and 22 deletions

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,