From patchwork Sat Apr 11 00:36:33 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 2156 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1775867827; bh=YyXc4Uou6tmR+ID7W7EUzxVcsqDd6dfoIYRDmezL7Lw=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Zfx2greHSwrNItFKrdQV7JjhWohkfpw+UjAa0+xGnloIg8u+LpR0eFg6CuphkMHRv fg2el7m6PaTBsXNQavdr3RVDhEFNM0w7LGZxVpJ097O1SAJV0uaP5igzd+cQCNdvjV 9PxCKPKtNOtmosfw09+SOl0pZ/cuLtvA7T84vemNSmXgD49ri3O+u3Mbj7YZf40Cv5 r6xmCg99IEsRXu/NuZW64OydxpzWTCizCV9AFwa41IiXag/R+MXoNryouleRLyEYMI 1cRXGEsiOcXiXlccBJ91Xd16X2roKC7Iw6eJ6Dw8n7MxUV55ioxYm0+1IQAQkkv0b3 TBtuWcUFT2G2w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B19D56A42C for ; Fri, 10 Apr 2026 18:37:07 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id zhiC11OMGn1t for ; Fri, 10 Apr 2026 18:37:07 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1775867825; bh=YyXc4Uou6tmR+ID7W7EUzxVcsqDd6dfoIYRDmezL7Lw=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=MsimwAUUhI43JdIn9vNkolmEwI17rxQz+6TGb+UJRCxDEgXk7U6UftJVHuiFR6dRD NwIql4Oj0YT1L0VyA3OXwfHFO1Gx0VUbQtVJ9n6Thw0lk4sJHrvgJKGeWAOlm0J61Q BPljuTpMPuTm/8pDwSDZMdfpu84PzBg4zxMiqfDdiHYvWIazKs5nk8+Lqrl2BNrAXU uImzl4HdAE3yJpod2aDvLGnBWHSWZxXuuKY+jwG9oyMpR4Fi590i/x+bh2q3pdRgl5 yPv2rryXScqAU/J6qCW0SKih23wf2ZLRLpXlGYJbuafcfC6roHa2eUnTPyfQ9Avc7l QLDPSbGqu6ukA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B07C96A3B8 for ; Fri, 10 Apr 2026 18:37:05 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1775867823; bh=2ROWUzImjObY5SHhn1ie5v2cSj7nr0DF81+s0feaw0U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d0D606O4NRuUidiYFPoMhwoaWPRpdU7ID3uxfxdlEfpzt24NzMPizTZ7joawU6YCh VoIliQAESd/fp2wcwpTzfuGcvtO2fO/CR5h6mO6qIxuNUO3z9op+NL6LA4DLQzDG/P djaKKAntaFO78MuRT1GNiY36cT1LwfWhYLkLFY/a9Ohb/QvUMcYM22VPKFvgsMbUBb Kx6M1H3WOXZoKVbZMx4E2wuNIkKalhVwMmgXt9WPiJTwtW6ufQVxFBcM7ATsqGmutN 4sJXcg3rqvXaLWW/+dR5fVQ+rNDqcqx8ZF+tNJoOPBEKz+T5heDcvX+MC1qrJuOBxU yRhxfWwyACbZw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0D50B6A42C; Fri, 10 Apr 2026 18:37:03 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id rhVKtzPZya4R; Fri, 10 Apr 2026 18:37:02 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1775867820; bh=b6B8JJPSQBz1pOAHy2Xj0D0Loc6BVwprd/3Td32X1cE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o0CgQIex7LCC1sXVkK0Q/5EP4nacb7oumSRkDITk6UeY5GRtACZWBvSHatpOe7XG2 T4/e4rshS9NxsKcrbqN+AJW4yNE2XgM2ntfyhZF0fJiKwkHUzJGEqfKUkAkUmv7rdP elEBofugwR6/8rWUKnpeMEhEN0dePn+MKmPKmk+ZtOaOUEMkxmtPiwHlicE9L2C9xF h2eqXDskhM8badHKK84+YPl1yyvqd04JbxAg6oZdDZfYjewru6kQHdRbTVmR0eVhGJ DTH0KDKw1AwHw96IuTD8aZO1CUUn/nbnutbhQ1guZEKF+msciwAVx8TXD9CVxkDFUH VvbAWiBDcJKTA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 8A49A6A3B8; Fri, 10 Apr 2026 18:37:00 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Fri, 10 Apr 2026 18:36:33 -0600 Message-ID: <20260411003647.2592586-2-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260411003647.2592586-1-sjg@u-boot.org> References: <20260411003647.2592586-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 4WVPPVVT77AIB5ZYMKZTNEAEQVTO4L3F X-Message-ID-Hash: 4WVPPVVT77AIB5ZYMKZTNEAEQVTO4L3F X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 1/8] ext4l: Remove ext4l_resolve_path_internal() forward decl List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Move ext4l_resolve_path_internal() before ext4l_resolve_path() so the forward declaration is no longer needed. Signed-off-by: Simon Glass --- fs/ext4l/interface.c | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) 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 *