From patchwork Tue Dec 23 01:16:25 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1069 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=1766452631; bh=zI8PbI2YNBqPc7lPU4oKirYL2PBk4PZeV2IGvZDmP9Y=; 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=M8+P9iUaCdyUyI6RjjCsacoOT9BpP5sXSgXSkbLcfhmQ7PP0kzgZdGtpnc2SunURo FaBnhJTnujfYl4Erv62WYW0wkiXnDgLjxbZ0SXhUJlsAsh+25Nhm3r4fAfk2VE1N4k M8RzbytwHGrKL75RL9UP1RpGkSABHAz7ruBedQAtNIezhU7tmXD7ljRbvW8hkDgENT zWLhhGl7VONlIxPb7oPQioh7EUE86rbF2Le+pPpQjClY5gZV1IGRLCprTEFZ3OSIrS 8C6cpRgZy8/FUuK0H/1gh0iszRg9PollfLbViWQgvHew/zzN2CXYBLXF1t8riXHMJj XXsQ58pIoJbqg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 57CB064DC2 for ; Mon, 22 Dec 2025 18:17:11 -0700 (MST) 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 W6eoM24NB-mW for ; Mon, 22 Dec 2025 18:17:11 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766452630; bh=zI8PbI2YNBqPc7lPU4oKirYL2PBk4PZeV2IGvZDmP9Y=; 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=rA3Hi062orpqWCbKIyppLLpCLHP//l/2sB4YaDLhRWbYdYD8QLfFoHRNowhM8JoqJ zCvPSmK//uEEtm10czWvA6NY/GjUOGqIbrMSEaMOJEK1FrP8E4I5sOj/E8Wdws7IMB T1+oXVqKztz74laIgcf49XuXt6+ssQfgfkGdJaHimoBA6Ncgz3pUq46SkKLViKsMWf LAu8r0P88KNnP1vMr50YthooY9sFoQlLUdRbQyTaIvSo3ivP3MqjQSmw9HGOI3z6zL rb+oMMIoY/smW+Q3lYcwnCo8zwLFkul7OYRUFA4KCBwairwkqq73yPurJaA2dqDodd cCJp/ilC8tlSg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6F9C864D45 for ; Mon, 22 Dec 2025 18:17:10 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766452627; bh=dRzzOI/Peepc7AWp25rUD8e8Ujni8sYznojtOtcLuIQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I0dVc8VffpmkfH1JjFDdNKaWOCRYIbNlWRpxofFgpE5WILNXklxLacOmRzU6fmKFF LWg/Y7CnWA6b66eZvnUwMuwnA5ybsqL6cIuKDYt4kU9jCfaxh4dMbdjf1cyXTzG8jI 8CmSlTQCZDcSKzEback3qqjpVW6BB93nbi777pC1vf7lBIBxdCctltlwapnPWo07kq rtIhOQAaK1wQcFZGtsgG4RidhSfz5C4zArMz+noEe8JVGqB0DN9LFqEyDCiaontB2V ivYCBr5mbtLf2kt6ZMk4mM9GS2haN9JGjf8vyDzCuYrDFZB3IpqXIVZn9oU5vIpsh2 EuaUHsIoMzi4w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id F125564D45; Mon, 22 Dec 2025 18:17:07 -0700 (MST) 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 hkYm4JWhmG3r; Mon, 22 Dec 2025 18:17:07 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766452623; bh=Jh6C3hC6lKDl1lgmRdnJFKhW+bKw0srCH8BeU/2W4OA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pTqSxhBQxKCCIdpEdUpX7BnScgsXxLipfQCf/gvjoVO8Uc+qeZHNaENBhN6I5V5yC mPSJTXwoJStjxSlM0L2GrJr1tEh+mkpoig0e78KguRCZ3HEWH/Jvga9RrrTEsAgMFj W1hFXcKfAVxF6JAABvpVQDTiJQy885jvFnpnxai8BKz5Ap2PYGywGNo+5sLjNnDNrD 2x89bJ85v0OPVqusQMv46EQj3PZTsiSrqhB7KktviTyw1JoaIyPJHw/vqIEpNY0Nv3 7su5W0CbIH5xML28Ci3hxIaQ8q2i/b2kD/1FJ+Mdsek8+FlU18hO2fHeEi24Zkh34m p8siY0g9AF8Ug== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 9C7F364DAC; Mon, 22 Dec 2025 18:17:03 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Mon, 22 Dec 2025 18:16:25 -0700 Message-ID: <20251223011632.380026-11-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251223011632.380026-1-sjg@u-boot.org> References: <20251223011632.380026-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 6Z7SVX4BUIOTRVMXNY4BDRMA4MYBJ3RW X-Message-ID-Hash: 6Z7SVX4BUIOTRVMXNY4BDRMA4MYBJ3RW 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 , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 10/12] ext4l: Export ext4_readdir() for directory listing 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 Remove the static qualifier from ext4_readdir() so it can be called from the ext4l interface code for directory listing operations. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4l/dir.c b/fs/ext4l/dir.c index 9c4b853defa..c527847a300 100644 --- a/fs/ext4l/dir.c +++ b/fs/ext4l/dir.c @@ -122,7 +122,7 @@ int __ext4_check_dir_entry(const char *function, unsigned int line, return 1; } -static int ext4_readdir(struct file *file, struct dir_context *ctx) +int ext4_readdir(struct file *file, struct dir_context *ctx) { unsigned int offset; int i;