X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fipv6%2Fprotocol.c;h=52c1d58b6ca61587c5b1e49261316d282b80efb8;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=9a3f5b7e90e3d5db77f26da92861cb03892b3750;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/net/ipv6/protocol.c b/net/ipv6/protocol.c index 9a3f5b7e9..52c1d58b6 100644 --- a/net/ipv6/protocol.c +++ b/net/ipv6/protocol.c @@ -40,7 +40,7 @@ #include struct inet6_protocol *inet6_protos[MAX_INET_PROTOS]; -static spinlock_t inet6_proto_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(inet6_proto_lock); int inet6_add_protocol(struct inet6_protocol *prot, unsigned char protocol)