| Message ID | 20260121220857.2137568-25-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> 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=1769033449; bh=xkJixmCK0xz9IMXrPliRk0vcfwBM65PzBFblgVN8d90=; 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=Z2wji87loIXfYyEYbvXevOddGqOqxYQ+OWRTnWOEEnbNSe0pyunIWtSpVR3cbNlTc tInTb/tztJTj6mHksKSxPR8VpIPqg4kOTWqYq6EdmqkcQgLXIwkPbP5NiDiIPZea4p xYh3hiZeYGUOiN3JP39+JtabLdav9hxuYIIwxr6U1XVN6zcBH33WeoQnx8Eb5QRE60 oHO6xQb5DDZHAxEHPbmqBnz/eDx4BH9LdKu2OFoZXYcw3vThbrhcsPPA7r5pi9kIcM d8eQyW8f/pFNNu4mDPvGkfIbzc7McFflU7kUxfXUb7DV7xxQolkFWYMVi/Q0CmKM3t qzQnKjwrp7spg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 62D5969605 for <u-boot-concept@u-boot.org>; Wed, 21 Jan 2026 15:10:49 -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 mjr_nnWljStf for <u-boot-concept@u-boot.org>; Wed, 21 Jan 2026 15:10:49 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033449; bh=xkJixmCK0xz9IMXrPliRk0vcfwBM65PzBFblgVN8d90=; 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=Z2wji87loIXfYyEYbvXevOddGqOqxYQ+OWRTnWOEEnbNSe0pyunIWtSpVR3cbNlTc tInTb/tztJTj6mHksKSxPR8VpIPqg4kOTWqYq6EdmqkcQgLXIwkPbP5NiDiIPZea4p xYh3hiZeYGUOiN3JP39+JtabLdav9hxuYIIwxr6U1XVN6zcBH33WeoQnx8Eb5QRE60 oHO6xQb5DDZHAxEHPbmqBnz/eDx4BH9LdKu2OFoZXYcw3vThbrhcsPPA7r5pi9kIcM d8eQyW8f/pFNNu4mDPvGkfIbzc7McFflU7kUxfXUb7DV7xxQolkFWYMVi/Q0CmKM3t qzQnKjwrp7spg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 52B7969601 for <u-boot-concept@u-boot.org>; Wed, 21 Jan 2026 15:10:49 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033447; bh=Ns/wwYZ6VuWefKSnGX5TObKovEL2MLk3l4kEoJ1nUMo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XL745qtqFwTgH9//3i8Se2hwvlPSIKA8rhNkFKjrsjFyTLRV5Kj1qunmgCA765SO5 ID4ivjc5pq7mGPIRelUr/Er1UTOVu1QnZvVPlwFz+5/thQFy95kyNh6nOYcOip4GYa gj4Vu6X0eFP5rYCcxgDcjGrtVKTLXYmJa0I7GTTjD8Iqg9cLn3ZwcF2QgOjUpd8XPA 6Z/WEX+Rd6pOI6xUu2aSWhtTeewbZHPCLiCL0fyTD14tDR8ICovZxLKVwEimpJyD/A BMtPzPcPlrlhWGYKfF/Smwt/Rup5mzbV+Hi3ygtxAONY/XoJOZUhSE2HNGZGdiszcx 2uIgAz9ekmGsg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D08BD695F2; Wed, 21 Jan 2026 15:10:47 -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 hXQEpHP7OB_o; Wed, 21 Jan 2026 15:10:47 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033443; bh=vKlg4CDB0BwiDidk+2wBD1l5y3H7UfSb3RNrem7TKqw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rVEWnytMJYK4vQfG9nI0h25gZ6k9hZT79M/e1ZB86QkNUu6X+9B/CBzDfa5/WJVso xMxmVa1Z70cluuQtzKYC/v2R4oWtJc2ZaSPoDiRq3O/OiNX3xZGpeMoNWoY4OEvMQG Kft45gffdZDch888Qc7QdavWUO1E6KdmVEEtx/b78zYOaX/GkbGp7NNaeBKBLaX9cv muOdMLz6w+Ty5jstqOHfEfHkD1808Lw3RQcniSdutB+wmIi7JuRoj+cpkoZL4HTOKI fP1oWdkS8qMn1sWUVq++Pc+5lXVDG+Kzwyut4SoQ2mc5r5na+rIrjIIt4n9UGTu5k2 xSKEt7pjFoVrQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 84D79695F7; Wed, 21 Jan 2026 15:10:43 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Wed, 21 Jan 2026 15:08:37 -0700 Message-ID: <20260121220857.2137568-25-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260121220857.2137568-1-sjg@u-boot.org> References: <20260121220857.2137568-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: AJ3NUUMKUZH2UD6CRYVA43WRRC2FUYU5 X-Message-ID-Hash: AJ3NUUMKUZH2UD6CRYVA43WRRC2FUYU5 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 <simon.glass@canonical.com>, "Claude Opus 4 . 5" <noreply@anthropic.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 24/33] ext4l: Move setattr stubs to linux/fs.h List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/AJ3NUUMKUZH2UD6CRYVA43WRRC2FUYU5/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
Reorganise ext4l compatibility stubs
|
|
Commit Message
Simon Glass
Jan. 21, 2026, 10:08 p.m. UTC
From: Simon Glass <simon.glass@canonical.com> Move setattr_prepare(), setattr_copy(), and posix_acl_chmod() stubs to linux/fs.h alongside the iattr structure and ATTR_* flags. This reduces ext4_uboot.h from 440 to 435 lines. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- fs/ext4l/ext4_uboot.h | 5 ----- include/linux/fs.h | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 2954723e2de..9ddd88d78aa 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -210,11 +210,6 @@ struct path; /* UID/GID bit helpers - use linux/highuid.h */ #include <linux/highuid.h> -/* Attribute operations */ -#define setattr_prepare(m, d, a) ({ (void)(m); (void)(d); (void)(a); 0; }) -#define setattr_copy(m, i, a) do { } while (0) -#define posix_acl_chmod(m, i, mo) ({ (void)(m); (void)(i); (void)(mo); 0; }) - /* File operations */ #define vmf_fs_error(e) ((vm_fault_t)VM_FAULT_SIGBUS) diff --git a/include/linux/fs.h b/include/linux/fs.h index 07fe8c5e711..0f3e44214c5 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -356,6 +356,11 @@ struct iattr { #define ATTR_KILL_SGID (1 << 12) #define ATTR_TIMES_SET (ATTR_ATIME_SET | ATTR_MTIME_SET) +/* Attribute operations - stubs for U-Boot */ +#define setattr_prepare(m, d, a) ({ (void)(m); (void)(d); (void)(a); 0; }) +#define setattr_copy(m, i, a) do { } while (0) +#define posix_acl_chmod(m, i, mo) ({ (void)(m); (void)(i); (void)(mo); 0; }) + /* writeback_control - defined in linux/compat.h */ /* fsnotify - stubs */