X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fipv6%2Fxfrm6_tunnel.c;h=1df30ba70200ae4c15bad187dc38c9724b4129b2;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=9616a63cc4314fb8c47ee4857793d3cf18338f33;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/net/ipv6/xfrm6_tunnel.c b/net/ipv6/xfrm6_tunnel.c index 9616a63cc..1df30ba70 100644 --- a/net/ipv6/xfrm6_tunnel.c +++ b/net/ipv6/xfrm6_tunnel.c @@ -72,7 +72,7 @@ struct xfrm6_tunnel_spi { # define XFRM6_TUNNEL_SPI_MAGIC 0xdeadbeef #endif -static rwlock_t xfrm6_tunnel_spi_lock = RW_LOCK_UNLOCKED; +static DEFINE_RWLOCK(xfrm6_tunnel_spi_lock); static u32 xfrm6_tunnel_spi;