s390/hypfs: factor out filesystem code
[sfrench/cifs-2.6.git] / arch / s390 / hypfs / hypfs.h
index 05f3f9aee5fc956a2ab299dd416e492a064acec1..65f4036fd541a28b56868c0d33ec9c098ea46e82 100644 (file)
@@ -46,6 +46,15 @@ void hypfs_diag0c_exit(void);
 void hypfs_sprp_init(void);
 void hypfs_sprp_exit(void);
 
+int __hypfs_fs_init(void);
+
+static inline int hypfs_fs_init(void)
+{
+       if (IS_ENABLED(CONFIG_S390_HYPFS_FS))
+               return __hypfs_fs_init();
+       return 0;
+}
+
 /* debugfs interface */
 struct hypfs_dbfs_file;
 
@@ -69,7 +78,6 @@ struct hypfs_dbfs_file {
        struct dentry           *dentry;
 };
 
-extern void hypfs_dbfs_init(void);
 extern void hypfs_dbfs_exit(void);
 extern void hypfs_dbfs_create_file(struct hypfs_dbfs_file *df);
 extern void hypfs_dbfs_remove_file(struct hypfs_dbfs_file *df);