From: Jiri Slaby <jirislaby@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: <linux-kernel@vger.kernel.org>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Subject: [PATCH 4/5] FS: sysfs, remove SPIN_LOCK_UNLOCKED
Date: Fri, 9 Nov 2007 18:33:25 -0500 [thread overview]
Message-ID: <468229952380128680@pripojeni.net> (raw)
In-Reply-To: <4827138842526222333@pripojeni.net>
sysfs, remove SPIN_LOCK_UNLOCKED
SPIN_LOCK_UNLOCKED is deprecated, use DEFINE_SPINLOCK instead
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
---
commit 828042d12cc0aa515e049889aa76d4066df100c0
tree 85652493f11a06d0a1cda316d0f88a2ee7117d50
parent 4e91ba06c53856bfaab065aaf9fd8f5b0dd59f6f
author Jiri Slaby <jirislaby@gmail.com> Thu, 25 Oct 2007 11:58:48 +0200
committer Jiri Slaby <jirislaby@gmail.com> Thu, 25 Oct 2007 11:58:48 +0200
fs/sysfs/file.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c
index 6d31ac6..cb7eadf 100644
--- a/fs/sysfs/file.c
+++ b/fs/sysfs/file.c
@@ -37,7 +37,7 @@ void sysfs_printk_last_file(void)
* sysfs_dirent->s_attr.open points to sysfs_open_dirent. s_attr.open
* is protected by sysfs_open_dirent_lock.
*/
-static spinlock_t sysfs_open_dirent_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(sysfs_open_dirent_lock);
struct sysfs_open_dirent {
atomic_t refcnt;
next prev parent reply other threads:[~2007-11-09 23:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-09 23:31 [PATCH 1/5] Net: ibm_newemac, " Jiri Slaby
2007-11-09 23:32 ` [PATCH 2/5] Watchdog: bfin_wdt, " Jiri Slaby
2007-11-10 3:52 ` Mike Frysinger
2007-11-10 14:45 ` Wim Van Sebroeck
2007-11-09 23:32 ` [PATCH 3/5] Sbus: cpwatchdog, " Jiri Slaby
2007-11-10 14:46 ` Wim Van Sebroeck
2007-11-09 23:33 ` Jiri Slaby [this message]
2007-11-09 23:34 ` [PATCH 5/5] Net: sunrpc, " Jiri Slaby
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=468229952380128680@pripojeni.net \
--to=jirislaby@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®