| Message ID | 20260120234344.495605-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=1768952650; bh=BBGn9C9pT/PpPK6Ac/TAEyCVhHR4KFqfLd5aS/tKzK8=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=IlxRahIaeDTF1E9NRfWE4ZnlXibINUYC4KsbCHBNwKDxAT6bVAiHgKnBfLi6LtpbD pMjbylJBDxrKNQ9GLxey3pdIH4wVkArzuRU3rOv9ahQKxhOosfrJ/9gMtBsShVx6Dk Vd9F3r2ehYFBLvczEL/Rr1bO/2icPulmQj/Bv065Jx9AIrBrElTjmq0g746T6r3Sjb m1hDFW3tYXZ4u4IOvIO1QjvAanmSba6FezMuViUwnPZSOrni7df6N3L1Hvwq0knfXd vZiuSIPYnYwl5n1bgoqhk4QsMnFSJAPAvgRO/TV6AAFngRVFt0k9CyrOv+jAKwYCfy S8sF4B7++uvIw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4E9FA695A4 for <u-boot-concept@u-boot.org>; Tue, 20 Jan 2026 16:44:10 -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 f-FzORTSJ7fU for <u-boot-concept@u-boot.org>; Tue, 20 Jan 2026 16:44:10 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768952650; bh=BBGn9C9pT/PpPK6Ac/TAEyCVhHR4KFqfLd5aS/tKzK8=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=IlxRahIaeDTF1E9NRfWE4ZnlXibINUYC4KsbCHBNwKDxAT6bVAiHgKnBfLi6LtpbD pMjbylJBDxrKNQ9GLxey3pdIH4wVkArzuRU3rOv9ahQKxhOosfrJ/9gMtBsShVx6Dk Vd9F3r2ehYFBLvczEL/Rr1bO/2icPulmQj/Bv065Jx9AIrBrElTjmq0g746T6r3Sjb m1hDFW3tYXZ4u4IOvIO1QjvAanmSba6FezMuViUwnPZSOrni7df6N3L1Hvwq0knfXd vZiuSIPYnYwl5n1bgoqhk4QsMnFSJAPAvgRO/TV6AAFngRVFt0k9CyrOv+jAKwYCfy S8sF4B7++uvIw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3696D69590 for <u-boot-concept@u-boot.org>; Tue, 20 Jan 2026 16:44:10 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768952648; bh=h8yePVT219zuAZ7xIcZx7PPJLKV12HDTdDRs7Stxl7Q=; h=From:To:Cc:Subject:Date:From; b=Avp3lSNcF/dr2u4gTtXSLIqJCXdvB5vUiUERBsiD1d2DIS4eFfF0qe6Puoe5YCZAQ 5gq//MDqWadahpSHMghH9FOQlG3zo9m5SVOUiPRYg3VeVQGS3ebSJrjhq0CjERfUBc EK/e2MyVGiZHsArRJ2inzz6YhalCjtmaStF0NntMwML1PXvABiDME3Htq9czazOyfa D0h4kkmvWKd/SO5mEKPNqUCB7EJOGoW4gPOKdsG/ieVneLZzYLKVzcdPoEte29zEVo lXXXoBrhQpc48vKY7rRuXuIIZPoalLEflYR9UlMrvn54PQrm6ySY44ldHlUmKGBB3N Q6QHKMcFtgiJg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9A8B869590; Tue, 20 Jan 2026 16:44:08 -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 ndN6ZUkj8Q4M; Tue, 20 Jan 2026 16:44:08 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768952644; bh=lcybQFxoZGu6tiwXu1ZbS7Wk6XZHzxi2PmjUCokQxes=; h=From:To:Cc:Subject:Date:From; b=f5gCeGK93EAUVjOjdXMofG2aoHXBu4wgcphq2HjE298avSM3peAJjIWPHbq1FZDSy X8ps1Avw9R5ZHJRSgN7PpT9DplXXXNatQDLEI9GLNDRLgQN37cIigZPL3mN2nS8Xfl xEslS/9tcSmL316j00rCO0eHhDWcqcThm3Fz58saY4K0PRTlRpu8QSLbNsQuZ9nU/6 2fi2rldQSwPYVLTZoE5/dAbxivUfFT/cVlSuHyuJ/aWQqblXG6T+DQPWY85eVKCTHW 53SVx10w57JRCg3wfEbKCapsB0O82H5ksZSd5zaJpXuIl1J+TK7dlTkV77YYMku8p+ ejk73SQZuO7iw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 5475169555; Tue, 20 Jan 2026 16:44:04 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Tue, 20 Jan 2026 16:43:20 -0700 Message-ID: <20260120234344.495605-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: N3O7XJK27HDJYG34BVVPALYLPWX23FKO X-Message-ID-Hash: N3O7XJK27HDJYG34BVVPALYLPWX23FKO 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/17] ext4l: Move compatibility stubs to standard Linux headers 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/N3O7XJK27HDJYG34BVVPALYLPWX23FKO/> 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 |
ext4l: Move compatibility stubs to standard Linux headers
|
|
Message
Simon Glass
Jan. 20, 2026, 11:43 p.m. UTC
From: Simon Glass <simon.glass@canonical.com>
The ext4 Linux port (ext4l) includes many compatibility stubs in
ext4_uboot.h. This makes it harder to maintain and compare against
upstream Linux, since the stubs are all in one U-Boot-specific file
rather than in their canonical header locations.
This series moves these stubs to their proper locations in the Linux
header hierarchy:
- Cache alignment macros to linux/cache.h
- Pointer macros to linux/slab.h
- Compiler attributes to linux/compiler_attributes.h
- Inode helpers and state bits to linux/fs.h
- Memory and kunit stubs to standard headers
- Little-endian bitops to asm-generic/bitops/le.h
- UUID helpers to linux/statfs.h
- Time functions to linux/time.h
- Buffer operations to linux/buffer_head.h
- Block device stubs to linux/blkdev.h
- Folio operations to proper headers
- Super operations to linux/fs/super_types.h
- Lock and scheduler stubs to proper headers
This makes the U-Boot Linux compatibility layer more closely mirror the
actual Linux header structure, easing future synchronisation with
upstream ext4 changes.
Simon Glass (17):
ext4l: Move cache alignment and pointer macros to headers
ext4l: Move inode helpers to standard linux headers
ext4l: Move inode state bits to linux/fs.h
ext4l: Move memory and kunit stubs to standard headers
ext4l: Create asm-generic/bitops/le.h for little-endian bitops
ext4l: Move uuid_to_fsid to linux/statfs.h and use hexdump.h
ext4l: Move time functions to linux/time.h
ext4l: Move buffer and filesystem helpers to standard headers
ext4l: Move block device atomic write stubs to linux/blkdev.h
ext4l: Move get_block_t typedef to linux/fs.h
ext4l: Move buffer operations to linux/buffer_head.h
ext4l: Move inode stubs to proper headers
ext4l: Move folio operations to proper headers
ext4l: Move super_operations to linux/fs/super_types.h
ext4l: Move lock and scheduler stubs to proper headers
ext4l: Move lock bit operations to asm-generic/bitops/lock.h
ext4l: Move superblock write stubs to linux/fs/super_types.h
fs/ext4l/ext4_uboot.h | 325 +++++++---------------------
include/asm-generic/bitops/le.h | 76 +++++++
include/asm-generic/bitops/lock.h | 30 +++
include/kunit/static_stub.h | 12 +-
include/linux/blkdev.h | 5 +
include/linux/buffer_head.h | 74 +++++++
include/linux/cache.h | 22 ++
include/linux/compiler_attributes.h | 10 +
include/linux/cred.h | 3 +
include/linux/fs.h | 85 +++++++-
include/linux/fs/super_types.h | 33 +++
include/linux/mutex.h | 1 +
include/linux/pagemap.h | 18 ++
include/linux/pagevec.h | 11 +
include/linux/sched.h | 1 +
include/linux/sched/mm.h | 32 +++
include/linux/slab.h | 9 +
include/linux/spinlock.h | 4 +
include/linux/statfs.h | 19 ++
include/linux/time.h | 14 ++
include/linux/writeback.h | 8 +
21 files changed, 537 insertions(+), 255 deletions(-)
create mode 100644 include/asm-generic/bitops/le.h
create mode 100644 include/asm-generic/bitops/lock.h
create mode 100644 include/linux/cache.h
create mode 100644 include/linux/sched/mm.h