[PATCH] sysfs - cleanup semaphore.h

From: Dave Young
Date: Thu Jul 26 2007 - 02:52:52 EST


Cleanup semaphore.h

Signed-off-by: Dave Young <hidave.darkstar@xxxxxxxxx>

---
fs/sysfs/bin.c | 2 +-
fs/sysfs/dir.c | 2 +-
fs/sysfs/group.c | 1 -
fs/sysfs/inode.c | 1 -
fs/sysfs/mount.c | 1 -
fs/sysfs/symlink.c | 2 +-
6 files changed, 3 insertions(+), 6 deletions(-)

diff -upr linux/fs/sysfs/bin.c linux.new/fs/sysfs/bin.c
--- linux/fs/sysfs/bin.c 2007-07-26 14:31:57.000000000 +0000
+++ linux.new/fs/sysfs/bin.c 2007-07-26 14:35:22.000000000 +0000
@@ -14,9 +14,9 @@
#include <linux/kobject.h>
#include <linux/module.h>
#include <linux/slab.h>
+#include <linux/mutex.h>

#include <asm/uaccess.h>
-#include <asm/semaphore.h>

#include "sysfs.h"

diff -upr linux/fs/sysfs/dir.c linux.new/fs/sysfs/dir.c
--- linux/fs/sysfs/dir.c 2007-07-26 14:31:57.000000000 +0000
+++ linux.new/fs/sysfs/dir.c 2007-07-26 14:35:47.000000000 +0000
@@ -11,7 +11,7 @@
#include <linux/namei.h>
#include <linux/idr.h>
#include <linux/completion.h>
-#include <asm/semaphore.h>
+#include <linux/mutex.h>
#include "sysfs.h"

DEFINE_MUTEX(sysfs_mutex);
diff -upr linux/fs/sysfs/group.c linux.new/fs/sysfs/group.c
--- linux/fs/sysfs/group.c 2007-07-26 14:31:57.000000000 +0000
+++ linux.new/fs/sysfs/group.c 2007-07-26 14:36:17.000000000 +0000
@@ -14,7 +14,6 @@
#include <linux/namei.h>
#include <linux/err.h>
#include <linux/fs.h>
-#include <asm/semaphore.h>
#include "sysfs.h"


diff -upr linux/fs/sysfs/inode.c linux.new/fs/sysfs/inode.c
--- linux/fs/sysfs/inode.c 2007-07-26 14:31:57.000000000 +0000
+++ linux.new/fs/sysfs/inode.c 2007-07-26 14:36:38.000000000 +0000
@@ -14,7 +14,6 @@
#include <linux/capability.h>
#include <linux/errno.h>
#include <linux/sched.h>
-#include <asm/semaphore.h>
#include "sysfs.h"

extern struct super_block * sysfs_sb;
diff -upr linux/fs/sysfs/mount.c linux.new/fs/sysfs/mount.c
--- linux/fs/sysfs/mount.c 2007-07-26 14:31:57.000000000 +0000
+++ linux.new/fs/sysfs/mount.c 2007-07-26 14:36:45.000000000 +0000
@@ -8,7 +8,6 @@
#include <linux/mount.h>
#include <linux/pagemap.h>
#include <linux/init.h>
-#include <asm/semaphore.h>

#include "sysfs.h"

diff -upr linux/fs/sysfs/symlink.c linux.new/fs/sysfs/symlink.c
--- linux/fs/sysfs/symlink.c 2007-07-26 14:31:57.000000000 +0000
+++ linux.new/fs/sysfs/symlink.c 2007-07-26 14:37:12.000000000 +0000
@@ -7,7 +7,7 @@
#include <linux/module.h>
#include <linux/kobject.h>
#include <linux/namei.h>
-#include <asm/semaphore.h>
+#include <linux/mutex.h>

#include "sysfs.h"

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/