X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Feconet%2Faf_econet.c;h=06f5460516e0f92f0cb3f5d3d8b89082c05cbe29;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=fc31ae1209d1f96d8c8b1e04197f443a8094ed9c;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/net/econet/af_econet.c b/net/econet/af_econet.c index fc31ae120..06f546051 100644 --- a/net/econet/af_econet.c +++ b/net/econet/af_econet.c @@ -40,14 +40,14 @@ #include #include #include +#include #include #include -#include static struct proto_ops econet_ops; static struct hlist_head econet_sklist; -static rwlock_t econet_lock = RW_LOCK_UNLOCKED; +static DEFINE_RWLOCK(econet_lock); /* Since there are only 256 possible network numbers (or fewer, depends how you count) it makes sense to use a simple lookup table. */