From b81b4d02ee7b5338245d9a2e6d4b23b0c5fe9913 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 5 Jul 2001 16:01:18 +0000 Subject: [PATCH] changed declaration of bufinfo spinlock to static. This doesn't actually matter, since it is only there to prevent interrupts, but makes the code look less buggy. --- comedi/comedi_fops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index bf395800..fcef9945 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -476,7 +476,7 @@ static int do_bufinfo_ioctl(comedi_device *dev,void *arg) comedi_bufinfo bi; comedi_subdevice *s; comedi_async *async; - spinlock_t bufinfo_lock = SPIN_LOCK_UNLOCKED; + static spinlock_t bufinfo_lock = SPIN_LOCK_UNLOCKED; unsigned long irq_flags; int m; -- 2.26.2