| Message ID | 20260121220857.2137568-1-sjg@u-boot.org |
|---|---|
| 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=1769033353; bh=xUoKJxM8rAYPlmJ2xV7lDRXZZ6C/NylIQ18YtnocrG4=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=fEr6h/Ews2QgAsVf3lTLARvMwYIFl6FwIdm3of0UY3XS6fZg1lxFMXmdKxfZTTwg/ TEz5Yv5+1eaqW1qx3gJ57awGd8WMaHmHSKs4/si/+aHCbO9el6xEFKmV+KTZ41zQ1z QlRo/NJ4YI2szUip844THiIhGbn4dG2aITKcnksxpZKVphu7gaBr8DPt2fCy8piKzk 1XZsLWS6dKyS69Ee4k7ZSROPt/4IH+CFtL5ntornN8mBPb0s9LEzJVR96CVsEdJ40t Y1MHVxlZGB3jBW/r6E/9WEscw1l5YYeKix7N8DXvMtHf6QTE0MHyLR3fYYVGJct8Bh aCGSkStkETUhA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D94AD695FD for <u-boot-concept@u-boot.org>; Wed, 21 Jan 2026 15:09:13 -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 31rPtgIkhBLz for <u-boot-concept@u-boot.org>; Wed, 21 Jan 2026 15:09:13 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033353; bh=xUoKJxM8rAYPlmJ2xV7lDRXZZ6C/NylIQ18YtnocrG4=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=fEr6h/Ews2QgAsVf3lTLARvMwYIFl6FwIdm3of0UY3XS6fZg1lxFMXmdKxfZTTwg/ TEz5Yv5+1eaqW1qx3gJ57awGd8WMaHmHSKs4/si/+aHCbO9el6xEFKmV+KTZ41zQ1z QlRo/NJ4YI2szUip844THiIhGbn4dG2aITKcnksxpZKVphu7gaBr8DPt2fCy8piKzk 1XZsLWS6dKyS69Ee4k7ZSROPt/4IH+CFtL5ntornN8mBPb0s9LEzJVR96CVsEdJ40t Y1MHVxlZGB3jBW/r6E/9WEscw1l5YYeKix7N8DXvMtHf6QTE0MHyLR3fYYVGJct8Bh aCGSkStkETUhA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C66CD695F7 for <u-boot-concept@u-boot.org>; Wed, 21 Jan 2026 15:09:13 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033349; bh=X2dmLX41lLnjbO1CYFmhfFYSSAVPQz/gON1einE5+2A=; h=From:To:Cc:Subject:Date:From; b=G3fC6rfrCXS+3QIbMVyfzMgNYlQde7yjJGsVjerHI48u8WjFAnbp8z4WDqSWlhjTa WWuKVzjDNVvtjeAwTwssAggk5h3Y126qBpyunJcmz2eRWdppbt5TXvUbqn8rN7a+Nm sZaYhmkkE+wk2Rb/98OuRPdxc1hR67S53Q1pRo+lHybFrZ2l5Sk5+ccWR+dKE3Nain AOd3wDwVjpoyJYXKM6vtkxEKYFtvXLyLWDTehpZZ6KJSveGRBkkr9P0/wGfNlQISRI Dy7zBuXF4PeKa6MbmUcOsFfXOPNh/fMT9TkwA3y+ae8RLshCk/w8rHkqOKco3jIcNF EThkVdokWUybQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D6E14695F4; Wed, 21 Jan 2026 15:09:09 -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 pd1OWq2BENyZ; Wed, 21 Jan 2026 15:09:09 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033345; bh=OPA6Ve2NOjKbIN/N7CraNK/YvTWNokoZQv0hm6bS1Zg=; h=From:To:Cc:Subject:Date:From; b=guDbV+BydlVZxCheSzRPPMI9Qfa058FxIHCdfTDL+rIZIkU2yY8h/QOwo6qJWsvN2 3uba3JzDxbC2xVNY7agem/yb7Ol2vkk0UUPSi4lSSHS9al6KKBvfgEnBOAJ/cmcPKG pNH+NGK+fEDL3cfd7S36sK0hNQexbHD4u2oIk0nCPi0JiGAGyen+R6tmEbJca7bs1A IkYBUlLPcxIGmfa8le9ZbUm6wkCYE49AXmT3Dk3WZ0DxFpJAnHhE+kvrgVDifMunSe HjhFHMbgRfjkohqx7zaEPFS44FeG5841zZAC7GjydRCTQDMwSn+S20zMGzxl/SAue5 eCX4/REBZB4MA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 755C3695F2; Wed, 21 Jan 2026 15:09:05 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Wed, 21 Jan 2026 15:08:13 -0700 Message-ID: <20260121220857.2137568-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: K2VCICWKWPCQQR3YJFV3A3HMCVIBE6XB X-Message-ID-Hash: K2VCICWKWPCQQR3YJFV3A3HMCVIBE6XB 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> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 00/33] Reorganise ext4l compatibility stubs 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/K2VCICWKWPCQQR3YJFV3A3HMCVIBE6XB/> 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
|
|
Message
Simon Glass
Jan. 21, 2026, 10:08 p.m. UTC
From: Simon Glass <simon.glass@canonical.com>
The ext4l filesystem uses a large compatibility header (ext4_uboot.h)
containing stubs for Linux kernel interfaces. This series moves these
stubs to their proper locations in include/linux/, making them available
to other subsystems and improving code organisation.
The series:
- Fixes list_sort() callback signature to match Linux kernel
- Moves struct definitions and stubs to appropriate linux/ headers
- Adds missing stubs to existing headers (fs.h, blkdev.h, slab.h, etc.)
- Creates new stub headers where needed (iomap.h, super_types.h)
- Consolidates and sorts the remaining includes
This reduces ext4_uboot.h from over 550 lines to around 270 lines. At
this point, the work can be considered complete.
Simon Glass (33):
linux/sort.h: Fix qsort implicit declaration warning
list: Add const qualifiers to list_sort callback signature
ext4l: Remove redundant header-location comments from ext4_uboot.h
ext4l: Move file_operations and inode_operations to linux/fs.h
ext4l: Move struct inode and time accessors to linux/fs.h
ext4l: Move sb_ functions and SB_ macros to super_types.h
ext4l: Move seq_ functions to linux/seq_file.h
ext4l: Move inode state accessors to linux/fs.h
ext4l: Move generic VFS operations to linux/fs.h
ext4l: Move block device operations to linux/blkdev.h
ext4l: Move file_ functions to linux/fs.h
ext4l: Move fsnotify_sb_error() to linux/fs.h
ext4l: Move DEFINE_WAIT to linux/wait.h
ext4l: Move filemap_fdatawait_range_keep_errors() to pagemap.h
ext4l: Move various stubs to proper linux/ headers
ext4l: Consolidate DX_HASH_* into EXT4_UBOOT_NO_EXT4_H block
ext4l: Have hash.c include ext4.h directly
ext4l: Move inode and filesystem helpers to linux/fs.h
ext4l: Move time_is_before_jiffies() to linux/jiffies.h
ext4l: Remove duplicate ext4_update_overhead() declaration
ext4l: Move xattr helper stubs to linux/xattr.h
ext4l: Remove duplicate __ext4_xattr_set_credits() declaration
ext4l: Move iomap stubs to linux/iomap.h
ext4l: Move setattr stubs to linux/fs.h
ext4l: Move finish_open_simple() and ihold() to linux/fs.h
ext4l: Move nd_terminate_link() to linux/namei.h
ext4l: Move blk_holder_ops to linux/blkdev.h
ext4l: Move more stubs to standard Linux headers
ext4l: Move WHITEOUT and usercopy stubs to headers
ext4l: Move O_SYNC, S_NOQUOTA and kfree_link to headers
linux: Add PAGE_SHIFT and PAGE_MASK to linux/compat.h
linux: Add DEFINE_RAW_FLEX to linux/overflow.h
ext4l: Consolidate and sort includes in ext4_uboot.h
.../mach-stm32mp/cmd_stm32prog/stm32prog.c | 9 +-
fs/ext4l/ext4_uboot.h | 1476 ++---------------
fs/ext4l/hash.c | 4 +-
fs/ext4l/stub.c | 5 +
fs/ubifs/gc.c | 19 +-
fs/ubifs/replay.c | 6 +-
include/linux/blkdev.h | 42 +
include/linux/compat.h | 7 +
include/linux/dax.h | 23 +-
include/linux/fs.h | 336 +++-
include/linux/fs/super_types.h | 44 +
include/linux/iomap.h | 4 +
include/linux/jiffies.h | 3 +
include/linux/ktime.h | 9 +
include/linux/list_sort.h | 8 +-
include/linux/mm_types.h | 3 +
include/linux/namei.h | 11 +
include/linux/overflow.h | 12 +
include/linux/pagemap.h | 2 +
include/linux/percpu.h | 1 +
include/linux/prefetch.h | 4 +-
include/linux/proc_fs.h | 1 +
include/linux/rwsem.h | 2 +
include/linux/sched/mm.h | 3 +
include/linux/seq_file.h | 8 +
include/linux/slab.h | 2 +
include/linux/sort.h | 2 +-
include/linux/wait.h | 3 +
include/linux/xattr.h | 4 +
lib/efi_loader/efi_memory.c | 7 +-
lib/list_sort.c | 12 +-
31 files changed, 716 insertions(+), 1356 deletions(-)