| Message ID | 20251216211817.4131167-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=1765919910; bh=AQX5vd242kEizrNEIDSvaBhtQadTLBMAs3eZn5KoFXY=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=bCJSuGYTIk22AQjhSNFjiebRw5qSgQRWJXNmbSzPvlceeCWN2aglcGkE3HPhzxQ8v s8hJe2SchZWoYLdFM4sBMlLtH9UmwI+ua+oqLVLXiRBF30UHRqnGQBmmGw/LYOjDNs eeEsMm9s5rbDFjyD0u612zXZLZM6qJgJ6z8TZGJQSXQjbNK2Kr2h/Hk/UFJzk4NFfd VMUxTpnne6ygUUes2n3jjLIww2zwsSc7fL9A576P3xRUwjDnKu9n8jdijZw8j6Ztcp r/f9OGV0gUUrEFtqr9/KHCH0LPN2P8cUAzmgLrX34Rzs3vFUwfwk2TBJ4w92mKPS1K lXSNsRE+84pTA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id CF83768B95 for <u-boot-concept@u-boot.org>; Tue, 16 Dec 2025 14:18:30 -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 0ASzbuYvdoz3 for <u-boot-concept@u-boot.org>; Tue, 16 Dec 2025 14:18:30 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1765919910; bh=AQX5vd242kEizrNEIDSvaBhtQadTLBMAs3eZn5KoFXY=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=bCJSuGYTIk22AQjhSNFjiebRw5qSgQRWJXNmbSzPvlceeCWN2aglcGkE3HPhzxQ8v s8hJe2SchZWoYLdFM4sBMlLtH9UmwI+ua+oqLVLXiRBF30UHRqnGQBmmGw/LYOjDNs eeEsMm9s5rbDFjyD0u612zXZLZM6qJgJ6z8TZGJQSXQjbNK2Kr2h/Hk/UFJzk4NFfd VMUxTpnne6ygUUes2n3jjLIww2zwsSc7fL9A576P3xRUwjDnKu9n8jdijZw8j6Ztcp r/f9OGV0gUUrEFtqr9/KHCH0LPN2P8cUAzmgLrX34Rzs3vFUwfwk2TBJ4w92mKPS1K lXSNsRE+84pTA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BC1BF68B84 for <u-boot-concept@u-boot.org>; Tue, 16 Dec 2025 14:18:30 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1765919908; bh=8Vb7EGIsGDyvg+HftzbW3d6Kmo+DGZUVh2TcMSZGTUc=; h=From:To:Cc:Subject:Date:From; b=mZ5Y9p77nHCpam8Kt56/XxSYPtKtG/INMfXWEjCNZ6Sr4t2ga90cQy6BEHa5z55yp RdlQJk4QHwS1n1oxPgQcDoXRgjQlu2ipsSMMghxXWg9nK3NBLfFlZMxlF4FeufK5mh QzUgYHPg6QKd8YEl8YcNoYZhdFssiLAMzeVDQbPdh80/U4QWFXfVPQ5oBWwY21iHBW sqxnXruD0UbS2957zoDDhg+w5mSBNlQIpN7BPgMpVUl6JaHDUunkTPD3AX/DWxvoSp Oy7kDz7ZsRY0IJux4DBSM84Se7CNIzdwJvBBA3FdpeYjb+/5g52Z/2yFQUYf3e1/Qg i+295vkVNRErw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 2987768AD5; Tue, 16 Dec 2025 14:18:28 -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 3MpRB_InzQ_l; Tue, 16 Dec 2025 14:18:28 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1765919904; bh=rq6K2bbMpRe2fjAtA38l1dzJbvGFdv+UOpHy9O1rg8k=; h=From:To:Cc:Subject:Date:From; b=XzQryft8uHdRph2CRL9dpnViCgCrReRsVu00ZDktIkJGgxrQI8k2tHWqh5ssa8NPY u8U+NjWYvVLTsgMmt7AbPDvCE4oncL5JC5IWa64SnsJlPIi+1Viv6pIPDapNPRNMVY XEIKL3QBA2V+AUO3DQ7Te4DQAS3MkmOpn/beNLPejsyRn0hAxzX614nk0fGiFIQJ0n RM3ZqZgMUweLXiw5YsFXI70y3s7IIVHM1G4HE1+yhiM7fZ/NCysTQnyJo93W6PLIUD O3a5pkYR0wjLnhaXGcmcDH6rGTUrGt6E+si26+USzvlCdKlJmADswFOnZKq8d/jMzB HwY7yi55J+vpg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id DB12C689CD; Tue, 16 Dec 2025 14:18:23 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Tue, 16 Dec 2025 14:18:01 -0700 Message-ID: <20251216211817.4131167-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: AKGJ3BBXZDW6KB3AT5MZLGEITZKOLHOB X-Message-ID-Hash: AKGJ3BBXZDW6KB3AT5MZLGEITZKOLHOB 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/11] ext4l: Add Linux compatibility 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/AKGJ3BBXZDW6KB3AT5MZLGEITZKOLHOB/> 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: Add Linux compatibility headers
|
|
Message
Simon Glass
Dec. 16, 2025, 9:18 p.m. UTC
From: Simon Glass <simon.glass@canonical.com>
This series extracts Linux kernel compatibility declarations from
include/linux/compat.h into their own header files, matching the
Linux kernel's organization. This makes it easier to port Linux
filesystem code to U-Boot and keeps the compatibility layer
maintainable.
The headers come from Linux v6.18
Headers added:
- export.h: EXPORT_SYMBOL macros
- stddef.h: sizeof_field() macro
- uaccess.h: copy_to/from_user stubs
- capability.h, cred.h, file.h, path.h, security.h, seq_file.h
- freezer.h: process freezer stubs
- slab.h, vmalloc.h: memory allocation
- module.h: kernel module stubs
- init.h: initcall macros
- kthread.h: kernel thread stubs
- timer.h, workqueue.h: timer and workqueue stubs
- sched.h, wait.h, rwsem.h: scheduler and synchronization
- percpu_counter.h, random.h, quotaops.h, part_stat.h, prefetch.h,
sort.h, swap.h
All headers include appropriate copyright/author information from
the original Linux sources.
Simon Glass (11):
ext4l: Extract export.h declarations into their own file
ext4l: Provide sizeof_field() in linux/stddef.h
ext4l: Extract uaccess.h declarations into their own file
ext4l: Add some stub headers for Linux code
ext4l: Extract freezer.h declarations into their own file
ext4l: Extract alloc declarations into their own file
ext4l: Extract module declarations into their own file
ext4l: Extract initcall declarations into their own file
ext4l: Extract kthread declarations into their own file
ext4l: Extract timer declarations into their own file
ext4l: Add stub versions various other linux headers
include/linux/capability.h | 27 +++++++
include/linux/compat.h | 143 ++++-----------------------------
include/linux/cred.h | 53 ++++++++++++
include/linux/export.h | 14 ++++
include/linux/file.h | 29 +++++++
include/linux/freezer.h | 17 ++++
include/linux/init.h | 49 +++++++++++
include/linux/kthread.h | 28 +++++++
include/linux/module.h | 37 +++++++++
include/linux/part_stat.h | 16 ++++
include/linux/path.h | 13 +++
include/linux/percpu_counter.h | 80 ++++++++++++++++++
include/linux/prefetch.h | 17 ++++
include/linux/quotaops.h | 38 +++++++++
include/linux/random.h | 15 ++++
include/linux/rwsem.h | 28 +++++++
include/linux/sched.h | 36 +++++++++
include/linux/security.h | 39 +++++++++
include/linux/seq_file.h | 18 +++++
include/linux/slab.h | 79 ++++++++++++++++++
include/linux/sort.h | 19 +++++
include/linux/stddef.h | 8 ++
include/linux/swap.h | 18 +++++
include/linux/timer.h | 30 +++++++
include/linux/uaccess.h | 32 ++++++++
include/linux/vmalloc.h | 24 ++++++
include/linux/wait.h | 31 +++++++
include/linux/workqueue.h | 37 +++++++++
28 files changed, 849 insertions(+), 126 deletions(-)
create mode 100644 include/linux/capability.h
create mode 100644 include/linux/cred.h
create mode 100644 include/linux/export.h
create mode 100644 include/linux/file.h
create mode 100644 include/linux/freezer.h
create mode 100644 include/linux/init.h
create mode 100644 include/linux/kthread.h
create mode 100644 include/linux/module.h
create mode 100644 include/linux/part_stat.h
create mode 100644 include/linux/path.h
create mode 100644 include/linux/percpu_counter.h
create mode 100644 include/linux/prefetch.h
create mode 100644 include/linux/quotaops.h
create mode 100644 include/linux/random.h
create mode 100644 include/linux/rwsem.h
create mode 100644 include/linux/sched.h
create mode 100644 include/linux/security.h
create mode 100644 include/linux/seq_file.h
create mode 100644 include/linux/slab.h
create mode 100644 include/linux/sort.h
create mode 100644 include/linux/swap.h
create mode 100644 include/linux/timer.h
create mode 100644 include/linux/uaccess.h
create mode 100644 include/linux/vmalloc.h
create mode 100644 include/linux/wait.h
create mode 100644 include/linux/workqueue.h