Skip to contentSkip to conversation

SYSFS: use standard magic.h for sysfs

PATCH New Qinghuang Feng 1 participant 1 message Jan 14, 2009 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SYSFS: use standard magic.h for sysfs

SYSFS_MAGIC has been added into magic.h, so only use that definition in magic.h to avoid potential consistency problem.

---

fs/sysfs/mount.c +1 -2
index ab343e3..8133ca3 100644
@@ -17,11 +17,10 @@
 #include <linux/pagemap.h>
 #include <linux/init.h>
 #include <linux/module.h>
+#include <linux/magic.h>
 
 #include "sysfs.h"
 
-/* Random magic number */
-#define SYSFS_MAGIC 0x62656572
 
 static struct vfsmount *sysfs_mount;
 struct super_block * sysfs_sb = NULL;