Move the magic number to proper place. Signed-off-by: Karel Zak <kzak@xxxxxxxxxx> --- fs/configfs/mount.c | 4 +--- include/uapi/linux/magic.h | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/configfs/mount.c b/fs/configfs/mount.c index 7f26c3c..e7b80af 100644 --- a/fs/configfs/mount.c +++ b/fs/configfs/mount.c @@ -30,13 +30,11 @@ #include <linux/pagemap.h> #include <linux/init.h> #include <linux/slab.h> +#include <linux/magic.h> #include <linux/configfs.h> #include "configfs_internal.h" -/* Random magic number */ -#define CONFIGFS_MAGIC 0x62656570 - static struct vfsmount *configfs_mount = NULL; struct kmem_cache *configfs_dir_cachep; static int configfs_mnt_count = 0; diff --git a/include/uapi/linux/magic.h b/include/uapi/linux/magic.h index 566788e..12bac3f 100644 --- a/include/uapi/linux/magic.h +++ b/include/uapi/linux/magic.h @@ -7,6 +7,7 @@ #define AUTOFS_SUPER_MAGIC 0x0187 #define CIFS_MAGIC_NUMBER 0xff534d42 #define CODA_SUPER_MAGIC 0x73757245 +#define CONFIGFS_MAGIC 0x62656570 /* some random number */ #define CRAMFS_MAGIC 0x28cd3d45 /* some random number */ #define CRAMFS_MAGIC_WEND 0x453dcd28 /* magic number with the wrong endianess */ #define DEBUGFS_MAGIC 0x64626720 -- 1.8.5.3 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html