| Message ID | 20260121220857.2137568-22-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=1769033436; bh=pEI+p/RjT6aWcFgzkkTDljRWieslRUq5Fs0Qb/BkMb0=; 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=Jcr1+Augw3yQTvnTP9oPQ72UNNlNmHqOUs+dxlktIIusq1Y3K0rrsI6dgjy91K1qz QwR7NHnCPc4xb5gU1IxdxtpPdGOkm3BG3XbtBMDPzYWVK1MFaiqC9Sew8gTVsFLBsn VFkV9YnG7jNXCMaCyrX1jzj88PArzIUCEQp8D1/HfN/QfqxXDxyTuN0J/r8pIqYd49 8SOGpG8cT8Z8K/9WKO3t9dvhvWeBY569NA3u/8iFRwyixRtf8jQjnRo8kTImTr9+2g YtkSzQkdcztJuahIT96VtAPyLYyz7TUHMRxHuiQ1f6iWkfOtWwqWyuuyQsIWfZzgfv TyvQFV8pzznxA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id A0C9E69605 for <u-boot-concept@u-boot.org>; Wed, 21 Jan 2026 15:10:36 -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 oPwE3PeXIMKW for <u-boot-concept@u-boot.org>; Wed, 21 Jan 2026 15:10:36 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033436; bh=pEI+p/RjT6aWcFgzkkTDljRWieslRUq5Fs0Qb/BkMb0=; 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=Jcr1+Augw3yQTvnTP9oPQ72UNNlNmHqOUs+dxlktIIusq1Y3K0rrsI6dgjy91K1qz QwR7NHnCPc4xb5gU1IxdxtpPdGOkm3BG3XbtBMDPzYWVK1MFaiqC9Sew8gTVsFLBsn VFkV9YnG7jNXCMaCyrX1jzj88PArzIUCEQp8D1/HfN/QfqxXDxyTuN0J/r8pIqYd49 8SOGpG8cT8Z8K/9WKO3t9dvhvWeBY569NA3u/8iFRwyixRtf8jQjnRo8kTImTr9+2g YtkSzQkdcztJuahIT96VtAPyLYyz7TUHMRxHuiQ1f6iWkfOtWwqWyuuyQsIWfZzgfv TyvQFV8pzznxA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 91105695FB for <u-boot-concept@u-boot.org>; Wed, 21 Jan 2026 15:10:36 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033434; bh=bFVo0EtV7FXqh3ICXtcuocXRNTIsrAwAjO5qoyyu26Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KFF3ZNhq1XUZ0/SznowSA0gre4L2O4lfp1+2YtifufhVV/Rpm9IQziPArY0+3Ih3P QltnVH8FwTVA8WoV9TozwFOGOJbDSut9KIyVOFXF0Hrks9jvO9d2fGsv2Nuc9bjZeA t5t/NDtLxIL8fovJpJCt6SOMX9cAllkmXsfR84jD+XplGQTf0HYWEsHPmKlalPTR0v 4AeR4bfY/5ptwSfUcD6hFeF24J18twb0OPlGAMSFajIHeh/5hZA+R4WTLuA25CJYDK 4f1paxpTu1kluuPHjaf2e8TOVCg7AAg5FNsFgBLkda8JR8Dvs5NcucJ1e/+wu1nWfu 71ydTIixAO6LQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 940A9695FB; Wed, 21 Jan 2026 15:10:34 -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 QhuLn-9fMiqD; Wed, 21 Jan 2026 15:10:34 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033429; bh=t+HN7U3i9msXv8kpGxW1NH8TFYUBM2ugCHB1v8MuQqo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GtqcdRkHHL8kAT2ZZhpee7Y9SZUFNCLQ2MkV9gu+yjEqOzw/6Ui26kbN91Zp0QtlN fnP7XhdWk9zl3sNl2zExGzy0ILmk7PEGB4xx2equWwwalV4IF4grESvFKE7ueV+g1Y 3MEUxdEgbCc33q2eOTdARPQjyKLcwibRhLSJzlHR6f5D7BFUKmMcHjmlzhINr5HvyR YSveNLkuJrAZn4Jq6lgBbouT6Q6LPVmm4umuug5/r+GkE4HqSq+7KHHfBhmCwo4p6P 89lfX05+yIa3Bm2Mk56P5GFSvHV8eJnKo2n8q1AgYO6RfKnHSE/JDtfRp5ldY4KOgm srfoCcPDdWBKw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 9DDBC695F7; Wed, 21 Jan 2026 15:10:29 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Wed, 21 Jan 2026 15:08:34 -0700 Message-ID: <20260121220857.2137568-22-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: ONSM67EUF3ZJFXBBKQGC2FMLAFSQSE5S X-Message-ID-Hash: ONSM67EUF3ZJFXBBKQGC2FMLAFSQSE5S 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 21/33] ext4l: Move xattr helper stubs to linux/xattr.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/ONSM67EUF3ZJFXBBKQGC2FMLAFSQSE5S/> 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 xattr_handler_can_list() and xattr_prefix() stubs to linux/xattr.h where they belong. This reduces ext4_uboot.h from 458 to 455 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/xattr.h | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 7b883f9a7ff..6b943934069 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -350,10 +350,7 @@ void *fs_dax_get_by_bdev(struct block_device *bdev, u64 *start, u64 *len, void *holder); #include <linux/mbcache.h> - -/* xattr helper stubs for xattr.c */ -#define xattr_handler_can_list(h, d) ({ (void)(h); (void)(d); 0; }) -#define xattr_prefix(h) ({ (void)(h); (const char *)NULL; }) +#include <linux/xattr.h> /* Filesystem sync - declaration for stub.c */ int sync_filesystem(void *sb); diff --git a/include/linux/xattr.h b/include/linux/xattr.h index db1bf4d3ee6..11cb3c8ad05 100644 --- a/include/linux/xattr.h +++ b/include/linux/xattr.h @@ -57,4 +57,8 @@ struct xattr_handler { #define XATTR_CREATE 0x1 #define XATTR_REPLACE 0x2 +/* xattr handler helpers - stubs for U-Boot */ +#define xattr_handler_can_list(h, d) ({ (void)(h); (void)(d); 0; }) +#define xattr_prefix(h) ({ (void)(h); (const char *)NULL; }) + #endif /* _LINUX_XATTR_H */