From 3c594b5ba1c70031b1412527f782a1b8c2e9ddde Mon Sep 17 00:00:00 2001
From: Sebastien Lorquet <sebastien@lorquet.fr>
Date: Wed, 11 May 2016 06:48:30 -0600
Subject: [PATCH] Allows the use of tmpfs when no block driver is available.
 This is correctly done to define NONBDFS but below the structure is not where
 it should be.

---
 fs/mount/fs_mount.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/mount/fs_mount.c b/fs/mount/fs_mount.c
index 8357aabcb1..f3ab72bc93 100644
--- a/fs/mount/fs_mount.c
+++ b/fs/mount/fs_mount.c
@@ -103,9 +103,6 @@ extern const struct mountpt_operations fat_operations;
 #ifdef CONFIG_FS_ROMFS
 extern const struct mountpt_operations romfs_operations;
 #endif
-#ifdef CONFIG_FS_TMPFS
-extern const struct mountpt_operations tmpfs_operations;
-#endif
 #ifdef CONFIG_FS_SMARTFS
 extern const struct mountpt_operations smartfs_operations;
 #endif
@@ -129,6 +126,9 @@ static const struct fsmap_t g_bdfsmap[] =
 #ifdef CONFIG_FS_NXFFS
 extern const struct mountpt_operations nxffs_operations;
 #endif
+#ifdef CONFIG_FS_TMPFS
+extern const struct mountpt_operations tmpfs_operations;
+#endif
 #ifdef CONFIG_NFS
 extern const struct mountpt_operations nfs_operations;
 #endif