From patchwork Tue Dec 30 23:41:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1131 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=1767138295; bh=EDzM3baFzRb0MwvMcg4t2YAsbiku8t7QO1WcIDzRFVI=; 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=HLlE5SC9KI5Q/9lDJSGtz5iWzLBOCyztRlQB61FRG4Ng+NYNpz36hmDFwrUrwCLRi c+Vn7Z12drBqpKUTwcxecpq/2l4JzAIBRcZicr+jaZU9UKNm1m+/AeZ1YZpeESNlln JG5pGIsyq3V7zuc0ouHX77bUmUVQfkaRfSxkfWtjKhem23d7Fk+eFkY7PWyBUQlSvA NLyEpttrOfYR5Drlv2lWKrwNUKdQSQcgwp47SSTLCC6QMhuK+nhtoQ6khKlpSacMMj nUvF7tNemnPA1gmqXoT0AxPhsvjyASkF6I0sT8sserJv8pt/L1VFCcPCwoyC8HjF2N ntThZDSWLaTIg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9DAA768F71 for ; Tue, 30 Dec 2025 16:44:55 -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 INw3TbDb8ZhN for ; Tue, 30 Dec 2025 16:44:55 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767138295; bh=EDzM3baFzRb0MwvMcg4t2YAsbiku8t7QO1WcIDzRFVI=; 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=HLlE5SC9KI5Q/9lDJSGtz5iWzLBOCyztRlQB61FRG4Ng+NYNpz36hmDFwrUrwCLRi c+Vn7Z12drBqpKUTwcxecpq/2l4JzAIBRcZicr+jaZU9UKNm1m+/AeZ1YZpeESNlln JG5pGIsyq3V7zuc0ouHX77bUmUVQfkaRfSxkfWtjKhem23d7Fk+eFkY7PWyBUQlSvA NLyEpttrOfYR5Drlv2lWKrwNUKdQSQcgwp47SSTLCC6QMhuK+nhtoQ6khKlpSacMMj nUvF7tNemnPA1gmqXoT0AxPhsvjyASkF6I0sT8sserJv8pt/L1VFCcPCwoyC8HjF2N ntThZDSWLaTIg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 8D15768C06 for ; Tue, 30 Dec 2025 16:44:55 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767138293; bh=KQ37FfCDyxUfZK/MiKW3GVUde3L0z2JUb0Z0aefvrEQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PnTAbTliTQVSiVlAs3MSs9zHJpVbqN268dwQ5HZdpkSMMTpDunWxhsYhbRKFvmGTc HWQ35h1GDuoHef3VWNg90CgMacPROnJGiSleALXW/N6qUAsbkKYrVjIun9581Sb+0r jhBJebGoI0d6gkFAXbprhkzLXuDj6E6rEPbEhZTteKywaVuBC7UE76hThlhpEAkY4P s6O325RoZ+mCanylCsQaJpHoB65xZoVo2feQaiUcHkHPoVL8S/VK65RvaBDusZ19ZX uybOEavFSj6vKr/m6ieSLh3fGu40O6petausXw7pW+eLUTi28q6KdSBa1pr4RNCwYt EiGkPv0qAC8hA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BBE1864E2A; Tue, 30 Dec 2025 16:44:53 -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 EzuCxObEKtdX; Tue, 30 Dec 2025 16:44:53 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767138289; bh=ERMMvBFfvkFb9Pb4UlhVgrDE5rYCD9bo/GVUzJ7kOEk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jZ/EzHlzzyS2wRmXEKFp/L9BbDv3uvR3HQ2CCTh2ULraNXGLjEBjl6aKHSw8Ic3Yx ghaUUrNk/Mi851jsN/Dmta0APlUzD6UVLycrNlE3oxqdLBNVW1p3CQL9JoX3rsMEKK SXk4THseP7RvcG6b4CqTJ5vLUjeTymSDg/igzcYVjZ5rYlBVJWtRJ+6hma4cQhRFek g/8Ay4Cble0fW18Eaif9Y0x5G9Od6BYWkrTYSQQXv/iSsjLs2XfFlMw9qxMyzaU6uN VlxuQr/EAmTDwBDCZtp81YRXBsgx94ivAOwzySYFbzymXdytnG5rANKiH2ZuA6V+aR SLYEwku5kZWrA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 7112F68C0F; Tue, 30 Dec 2025 16:44:49 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Tue, 30 Dec 2025 16:41:20 -0700 Message-ID: <20251230234134.906477-9-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251230234134.906477-1-sjg@u-boot.org> References: <20251230234134.906477-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: TIDYRKVXTPSEXZW4ULMYVBMDRVCS34BJ X-Message-ID-Hash: TIDYRKVXTPSEXZW4ULMYVBMDRVCS34BJ 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 08/15] ext4l: Fix inode_init_owner to set i_mode 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 Fix inode_init_owner() to properly set i_mode, which is needed for ext4_create() to work correctly. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index f4831a9b5c2..35db84588d6 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -410,7 +410,7 @@ extern struct inode *new_inode(struct super_block *sb); #define i_uid_write(inode, uid) do { } while (0) #define i_gid_write(inode, gid) do { } while (0) #define inode_fsuid_set(inode, idmap) do { } while (0) -#define inode_init_owner(idmap, i, dir, mode) do { } while (0) +#define inode_init_owner(idmap, i, dir, mode) do { (i)->i_mode = (mode); } while (0) #define insert_inode_locked(inode) (0) #define unlock_new_inode(inode) do { } while (0) #define clear_nlink(inode) do { } while (0)