X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fnetrom%2Faf_netrom.c;h=39223bbf193826ba16ff1d56ce3b64681923c296;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=62ff798bf306199afac863708336bd9691afe888;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index 62ff798bf..39223bbf1 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c @@ -43,7 +43,7 @@ #include #include -int nr_ndevs = 4; +static int nr_ndevs = 4; int sysctl_netrom_default_path_quality = NR_DEFAULT_QUAL; int sysctl_netrom_obsolescence_count_initialiser = NR_DEFAULT_OBS; @@ -60,7 +60,7 @@ int sysctl_netrom_link_fails_count = NR_DEFAULT_FAILS; static unsigned short circuit = 0x101; static HLIST_HEAD(nr_list); -static spinlock_t nr_list_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(nr_list_lock); static struct proto_ops nr_proto_ops; void nr_init_timers(struct sock *sk);