[Concept,1/8] ext4l: Remove ext4l_resolve_path_internal() forward decl
Commit Message
From: Simon Glass <sjg@chromium.org>
Move ext4l_resolve_path_internal() before ext4l_resolve_path() so
the forward declaration is no longer needed.
Signed-off-by: Simon Glass <sjg@chromium.org>
---
fs/ext4l/interface.c | 28 ++++++++++++----------------
1 file changed, 12 insertions(+), 16 deletions(-)
@@ -502,22 +502,6 @@ static int ext4l_read_symlink(struct inode *inode, char *target, size_t max_len)
return len;
}
-/* Forward declaration for recursive resolution */
-static int ext4l_resolve_path_internal(const char *path, struct inode **inodep,
- int depth);
-
-/**
- * ext4l_resolve_path() - Resolve path to inode
- *
- * @path: Path to resolve
- * @inodep: Output inode pointer
- * Return: 0 on success, negative on error
- */
-static int ext4l_resolve_path(const char *path, struct inode **inodep)
-{
- return ext4l_resolve_path_internal(path, inodep, 0);
-}
-
/**
* ext4l_resolve_path_internal() - Resolve path with symlink following
*
@@ -709,6 +693,18 @@ static int ext4l_resolve_path_internal(const char *path, struct inode **inodep,
return 0;
}
+/**
+ * ext4l_resolve_path() - Resolve path to inode
+ *
+ * @path: Path to resolve
+ * @inodep: Output inode pointer
+ * Return: 0 on success, negative on error
+ */
+static int ext4l_resolve_path(const char *path, struct inode **inodep)
+{
+ return ext4l_resolve_path_internal(path, inodep, 0);
+}
+
/**
* ext4l_dir_actor() - Directory entry callback for ext4_readdir
*