Messages in this thread Patch in this message | | | Subject | [PATCH 4/5] FS: sysfs, remove SPIN_LOCK_UNLOCKED | From | Jiri Slaby <> | Date | Fri, 9 Nov 2007 18:33:25 -0500 |
| |
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; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |