]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/linux/debugfs.h
mm/memory_hotplug: export generic_online_page()
[linux.git] / include / linux / debugfs.h
index 0e8f2e0cb91f1ee14ed178a5959be09d1f7b5caa..bf9b6cafa4c26a680df1e9bfbd9b175a66e63807 100644 (file)
@@ -54,6 +54,8 @@ static const struct file_operations __fops = {                                \
        .llseek  = no_llseek,                                           \
 }
 
+typedef struct vfsmount *(*debugfs_automount_t)(struct dentry *, void *);
+
 #if defined(CONFIG_DEBUG_FS)
 
 struct dentry *debugfs_lookup(const char *name, struct dentry *parent);
@@ -75,7 +77,6 @@ struct dentry *debugfs_create_dir(const char *name, struct dentry *parent);
 struct dentry *debugfs_create_symlink(const char *name, struct dentry *parent,
                                      const char *dest);
 
-typedef struct vfsmount *(*debugfs_automount_t)(struct dentry *, void *);
 struct dentry *debugfs_create_automount(const char *name,
                                        struct dentry *parent,
                                        debugfs_automount_t f,
@@ -203,7 +204,7 @@ static inline struct dentry *debugfs_create_symlink(const char *name,
 
 static inline struct dentry *debugfs_create_automount(const char *name,
                                        struct dentry *parent,
-                                       struct vfsmount *(*f)(void *),
+                                       debugfs_automount_t f,
                                        void *data)
 {
        return ERR_PTR(-ENODEV);