[Concept,1/8] ext4l: Remove ext4l_resolve_path_internal() forward decl

Message ID 20260411003647.2592586-2-sjg@u-boot.org
State New
Headers
Series ext4l: Support multiple concurrent VFS mounts |

Commit Message

Simon Glass April 11, 2026, 12:36 a.m. UTC
  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(-)
  

Patch

diff --git a/fs/ext4l/interface.c b/fs/ext4l/interface.c
index 9a3fda48300..d854c310be3 100644
--- a/fs/ext4l/interface.c
+++ b/fs/ext4l/interface.c
@@ -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
  *