| Message ID | 20260119214846.3087611-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=1768859340; bh=GbRrwMVrhj58b7IDWFR5e2DHHq8FYaI7cCW3AEWCJq8=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=uXChrkG6/ai28zexhLS2JThFp4lkEnJuN87s5oVQBwzZbfyAHy/b+QUKJMj5cpOJg /HoQMvFDHxWn0Ij6GjyLDxUQ7Dg0hr/7Q4OfVNgd7agboXrKjTeRod7DSVbpshlidv pNOZ3QFAn4wJbYJV0cuK+9fbepNGm0+ZemdClb9xi7DWstf2/lMWYdzr6RLcTLw5sv UrPDnVFAv7X9bz3WMhYeKksJGkkCcVqguWbZlywJiMH7x5kq/nYYykF2N5ikQ/7A0N qlUMJkkW7+EPJtsr0UaWogVxwQ178w0ltiScaMHF+QVj2EUOImtgnJQuu/rBEcVBg4 nIZwfEcnDX96Q== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0400C6952B for <u-boot-concept@u-boot.org>; Mon, 19 Jan 2026 14:49:00 -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 ioL7KjJZPA4n for <u-boot-concept@u-boot.org>; Mon, 19 Jan 2026 14:48:59 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768859339; bh=GbRrwMVrhj58b7IDWFR5e2DHHq8FYaI7cCW3AEWCJq8=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=rfOTPqtE8IpuOmsdTgTRMvD2QxRHNoJywF+DsM9jL8h/N4XVUdPSnseHm9V31CB/z X5ZEz4DIGcPtOlBLPK36g7iBMN31GH9MktvbQEsSmVXtI5dAQzCGHb1MgwvGOwmKnF edVYuQx/JZVGiHZq/99SdNTqIHu9lxxKptscrUvTmJ4KfWkasayoH0MG26PmnhAiyQ BAr7hZKLo5PknKIAS9CiDiP/QUwjWzVE1mMfoFiG+hGePIj9DOZDHimP/US7kmmnN7 qrepJN89BgB9JJQVBvI0inWaXhjW1mIAd7TtlI9pJIM5ORLy7QmWsvzzRLQqT6n9Pk 0LVFO69zm02vg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E50B66951A for <u-boot-concept@u-boot.org>; Mon, 19 Jan 2026 14:48:59 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768859338; bh=RluTxB60XklIWNJl7kbWePUbwFmaF4wvgzrsTnmuByc=; h=From:To:Cc:Subject:Date:From; b=jlHhk3u0K8Gt0mhjbhIDeq616hZ1RzM5Z+RAV/uPyOwLbftZcnhtqihO/vTeTYPJ6 SZZlCubapYTLFFdJgjpxEtnejZ9kYB5OUygsX+IfdNi68P8DYlYkIXIaEpCdyBDWK6 2SaxKwQQcAME/bzE9CGirIU5OoQsOy2oOD5ghkOaMoobUxH/jv12vG813LzZgEsDov LQuPA9ewxTfnXT98Zouv1j5dyc3OvgMGkMdiTYwDHIaSQlE53uOvcGrf4fPYyes1/V iFwJ0r1pvAfRcFVxe7HM8BtSgO1zjhRXqbUR3UKBh7j48GzXWSCLTxGPndk68QwdHb UbCnrpR7RS2TQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7B6F76951A; Mon, 19 Jan 2026 14:48:58 -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 WxLOHsa0fTjd; Mon, 19 Jan 2026 14:48:58 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768859334; bh=FbjnzGx6/1injT+MCAaIXmn0FbsJykznkpiZ6aHK5FU=; h=From:To:Cc:Subject:Date:From; b=AY3kojZb/bBfwiFMV3cATcHeesl9gu0Vo1ozDG9Bfbrels3zNr/HAmc8TJKFJ9PRN ATQ+G4jcEpPn+8CEwkJvQkNFXGr3UEI15fjEkTUUrgsqZkFs11HD8uiTo2ywmUiyLA WczxGvWPP785ahxyaTCOpGKTxLhOEaKYGxpv2In7SHKkc8mMP65Lvfxbc8C3aWnmkT 6Uj/Dmsvc7Jtk13quzjjdg1zC2F+zkpTO/92ti4XZ52d2bihqHDoDxpK8UbotfwngO hZbYEDMgFiNlOsXawHaNOmidXIM6V57co+xk5gUVjgxuY35DzX0P6Nrgx41EC9uaZb Dw0U783nw2NtQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 39A07693E1; Mon, 19 Jan 2026 14:48:54 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Mon, 19 Jan 2026 14:48:25 -0700 Message-ID: <20260119214846.3087611-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: M7JOOL2NY2CPT5GDJSOZXRIMDQFXCSGK X-Message-ID-Hash: M7JOOL2NY2CPT5GDJSOZXRIMDQFXCSGK 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/16] ext4l: Move definitions 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/M7JOOL2NY2CPT5GDJSOZXRIMDQFXCSGK/> 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 definitions to standard Linux headers
|
|
Message
Simon Glass
Jan. 19, 2026, 9:48 p.m. UTC
From: Simon Glass <simon.glass@canonical.com>
This series continues the work of reducing fs/ext4l/ext4_uboot.h by
moving definitions to their proper locations in include/linux/ headers.
The ext4_uboot.h file provides Linux kernel compatibility for the ext4l
filesystem driver. Many definitions were placed there temporarily during
initial development. This series moves them to standard header locations
matching the Linux kernel organisation:
- Inode locking stubs and helpers to linux/fs.h
- Compiler helpers (data_race, might_sleep) to linux/compiler.h and
linux/kernel.h
- Instruction pointer macros to linux/kernel.h
- Credential types (user_namespace) to linux/cred.h
- Filesystem types (fstrim_range) to linux/fs.h
- Quota types (qsize_t) to linux/quotaops.h
- String helpers (memweight) to linux/string.h
- UID/GID helpers to new linux/highuid.h
- Overflow helpers (struct_size) to new linux/overflow.h
- Min/max helpers (umin) to linux/minmax.h
- Slab helpers (KMEM_CACHE) to linux/slab.h
- Rate limit helpers (WARN_RATELIMIT) to linux/ratelimit.h
- Cycle counter (get_cycles) to new asm-generic/timex.h
- Superblock definition (struct super_block) to new linux/fs/super_types.h
This reduces ext4_uboot.h from 1666 to 1620 lines.
Simon Glass (16):
ext4l: Move inode locking stubs to linux/fs.h
ext4l: Add linux/fs/super_types.h for struct super_block
ext4l: Move inode and superblock helpers to linux/fs.h
ext4l: Move data_race, might_sleep, fallthrough to standard headers
ext4l: Move _RET_IP_, _THIS_IP_, BITS_PER_BYTE to standard headers
ext4l: Move user_namespace to linux/cred.h
ext4l: Move fstrim_range to linux/fs.h
ext4l: Move qsize_t to linux/quotaops.h
ext4l: Move memweight to linux/string.h
ext4l: Add linux/highuid.h and move UID/GID helpers
ext4l: Add linux/overflow.h and move struct_size
ext4l: Move umin to linux/minmax.h
ext4l: Move KMEM_CACHE macro to linux/slab.h
ext4l: Use existing linux/nospec.h for array_index_nospec
ext4l: Move WARN_RATELIMIT to linux/ratelimit.h
ext4l: Add asm-generic/timex.h and move get_cycles
fs/ext4l/ext4_uboot.h | 148 +++++++--------------------------
include/asm-generic/timex.h | 21 +++++
include/linux/compiler.h | 8 ++
include/linux/cred.h | 9 ++
include/linux/fs.h | 51 +++++++++++-
include/linux/fs/super_types.h | 68 +++++++++++++++
include/linux/highuid.h | 19 +++++
include/linux/kernel.h | 17 ++++
include/linux/minmax.h | 18 ++++
include/linux/overflow.h | 23 +++++
include/linux/quotaops.h | 3 +
include/linux/ratelimit.h | 9 ++
include/linux/slab.h | 10 +++
include/linux/string.h | 24 ++++++
14 files changed, 308 insertions(+), 120 deletions(-)
create mode 100644 include/asm-generic/timex.h
create mode 100644 include/linux/fs/super_types.h
create mode 100644 include/linux/highuid.h
create mode 100644 include/linux/overflow.h