mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 4/7] drivers/media/dvb/firesat: Use DEFINE_SPINLOCK
@ 2008-12-25 14:34 Julia Lawall
  2008-12-25 15:31 ` Stefan Richter
  0 siblings, 1 reply; 2+ messages in thread
From: Julia Lawall @ 2008-12-25 14:34 UTC (permalink / raw)
  To: v4l-dvb-maintainer, stefanr, linux-kernel, kernel-janitors

From: Julia Lawall <julia@diku.dk>

SPIN_LOCK_UNLOCKED is deprecated.  The following makes the change suggested
in Documentation/spinlocks.txt

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
declarer name DEFINE_SPINLOCK;
identifier xxx_lock;
@@

- spinlock_t xxx_lock = SPIN_LOCK_UNLOCKED;
+ DEFINE_SPINLOCK(xxx_lock);
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>

---
diff -u -p a/drivers/media/dvb/firesat/firesat_1394.c b/drivers/media/dvb/firesat/firesat_1394.c
--- a/drivers/media/dvb/firesat/firesat_1394.c
+++ b/drivers/media/dvb/firesat/firesat_1394.c
@@ -94,7 +94,7 @@ MODULE_DEVICE_TABLE(ieee1394, firesat_id
 
 /* list of all firesat devices */
 LIST_HEAD(firesat_list);
-spinlock_t firesat_list_lock = SPIN_LOCK_UNLOCKED;
+DEFINE_SPINLOCK(firesat_list_lock);
 
 static void fcp_request(struct hpsb_host *host,
 			int nodeid,

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 4/7] drivers/media/dvb/firesat: Use DEFINE_SPINLOCK
  2008-12-25 14:34 [PATCH 4/7] drivers/media/dvb/firesat: Use DEFINE_SPINLOCK Julia Lawall
@ 2008-12-25 15:31 ` Stefan Richter
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Richter @ 2008-12-25 15:31 UTC (permalink / raw)
  To: Julia Lawall; +Cc: v4l-dvb-maintainer, linux-kernel, kernel-janitors

Julia Lawall wrote:
> SPIN_LOCK_UNLOCKED is deprecated.  The following makes the change suggested
> in Documentation/spinlocks.txt

Committed to linux1394-2.6.git.  Thanks,
-- 
Stefan Richter
-=====-==--- ==-- ==--=
http://arcgraph.de/sr/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-25 15:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-25 14:34 [PATCH 4/7] drivers/media/dvb/firesat: Use DEFINE_SPINLOCK Julia Lawall
2008-12-25 15:31 ` Stefan Richter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®