From patchwork Sun Jan 18 20:37:22 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 105 Return-Path: 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=1768768722; bh=vv1ILWSUdQH1jqIzRge1jdjHPm1E8ite5EOi2TSXBzU=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=lpA7nUPRSUF2q/lCHwOIMt6iIt3wtKHKkoh5WKG1t6W5mJI1y6K26St1LMEe9y6Mi 6ElnH5itboqbl/CO7CAombf767MC2qgc0ASX952kAb6AhCo1jacX3ZID7pV2ExpYVt iYGPQUSr/xcqBVxVpGxtBv+IcXK82RffOq1FbgJN6TJpMZcZtJs+F8VYuRY4aHP2kv Y/BQPtZ5XnSbQHYnwH9Yd5KEs8fMC9ak+8+w05B4mhOU0h67SEguZg6KNEe/IiBdN4 ztN3ZxB3bIVbjKzmRkirUQ1A9wP35jduxbghz0O5t9uPMREF3g0XtmJJsTzCEZ62iJ OfveNqwoBqWIw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7041B69489 for ; Sun, 18 Jan 2026 13:38:42 -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 z5PXx4qTFtNf for ; Sun, 18 Jan 2026 13:38:42 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768768722; bh=vv1ILWSUdQH1jqIzRge1jdjHPm1E8ite5EOi2TSXBzU=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=lpA7nUPRSUF2q/lCHwOIMt6iIt3wtKHKkoh5WKG1t6W5mJI1y6K26St1LMEe9y6Mi 6ElnH5itboqbl/CO7CAombf767MC2qgc0ASX952kAb6AhCo1jacX3ZID7pV2ExpYVt iYGPQUSr/xcqBVxVpGxtBv+IcXK82RffOq1FbgJN6TJpMZcZtJs+F8VYuRY4aHP2kv Y/BQPtZ5XnSbQHYnwH9Yd5KEs8fMC9ak+8+w05B4mhOU0h67SEguZg6KNEe/IiBdN4 ztN3ZxB3bIVbjKzmRkirUQ1A9wP35jduxbghz0O5t9uPMREF3g0XtmJJsTzCEZ62iJ OfveNqwoBqWIw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 584BD69487 for ; Sun, 18 Jan 2026 13:38:42 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768768720; bh=lAtzrjrxO2GMRA4up1llB75PHBAFweV8tWDjxdUVhd4=; h=From:To:Cc:Subject:Date:From; b=B6nqRRHkXSj3DCOKN/dfXxifr5NYI5YWO8eX+mFxzjKGNcsNFZakurfeldsRZm9L5 eRv2jaODDXB2sOPevZhLnh2wucNVvG9gwKe6kJjqSXp1O3buiSQn/zhjQfAUnaPTxo tbLC4ZG6D3gTgyWqLGWfHke1OEyGAkED4hJ5E31VAmDkUCgZ/23DAhHzVNlYOG5x6o 4NCS9iaISyB2ERGQwlm5Meb7s/Mqpvx8cfmg697x+Ij8S64uq75PfqBlgfQbpAiG4S 35Ihajvgg3GfSJ3iStoNpG7zZCLtBgYbvPg6Ds/9xjA60BLx0f3eRBvBPBzhAjy0Uf VIWZ8zXmaU8qw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 14A3069382; Sun, 18 Jan 2026 13:38:40 -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 ascEf0JdDm1N; Sun, 18 Jan 2026 13:38:40 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768768715; bh=xJVnSeRwleO24MRfBoSUyXTn8+M7pfHCGDe0tJZrNls=; h=From:To:Cc:Subject:Date:From; b=NP03zpWl4UxMDQ/brona5V6u06+qi55wbidWLDo6yKZo5viKADWdVmPIovFDuUAdx FODpwqIOOhy1WUZURe05ylyWT43FAuvMy3ktASSJxPFP6/zJzKd7q3fzGTa+iKrh9e 5BLTqWgXTNDQz7B2ETw072eDViIDw3iMzwQBHWi5WqefnKcP+wbWJv6vAHWnMjx9BD KJ11tCtyc64AOaLaGguyPbptgxXtRaVF5jQDPs4SLlLjwIU5isg5xagbAtHri3XhF2 BYvwsvNQDyZ5+p5P7958yKfxsaFotOweH4E93EahkPwDlCwupIPDnnzTjPuwBfDJOf 7p6aExzX22S5g== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id A238F6919C; Sun, 18 Jan 2026 13:38:35 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Sun, 18 Jan 2026 13:37:22 -0700 Message-ID: <20260118203739.1974323-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: 65YKCWF2SUYGUXHHU53TNCUQTF6RSQDR X-Message-ID-Hash: 65YKCWF2SUYGUXHHU53TNCUQTF6RSQDR 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 X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 00/12] ext4l: Continue reducing ext4_uboot.h size with more headers List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass This series continues reducing fs/ext4l/ext4_uboot.h by moving more definitions to appropriate include/linux/ header files. The previous series reduced the file from 2584 to 1980 lines. This series further reduces it to 1816 lines (total 30% reduction). New headers created: - fiemap.h: FIEMAP extent types and fiemap_extent_info structure - statfs.h: kstatfs structure for filesystem statistics - exportfs.h: NFS export operations (fid, export_operations) - mbcache.h: Metadata block cache stubs - wait_bit.h: Wait bit operation stubs - ratelimit.h: Rate limiting stubs - projid.h: Project ID type (kprojid_t) - mnt_idmap.h: Mount ID mapping stub - hash.h: hash_64() and hash_32() functions - blockgroup_lock.h: Block group lock structure - delayed_call.h: Delayed function call support Updated headers: - capability.h: Added CAP_SYS_ADMIN - uio.h: Added kiocb and IOCB_* flags - utsname.h: Added init_utsname() function - proc_fs.h: Added proc_ops structure and procfs stubs All implementations are appropriate stubs for U-Boot's single-threaded environment. Tests pass with these changes. Simon Glass (12): linux: capability: Add CAP_SYS_ADMIN constant linux: uio: Add kiocb struct and IOCB_* flags linux: Add fiemap.h header with extent mapping types linux: Add statfs.h header with kstatfs struct linux: Add exportfs.h header with NFS export operations linux: Add mbcache.h header with metadata cache stubs linux: Add wait_bit.h header with wait bit stubs linux: Add ratelimit.h header with rate limiting stubs linux: utsname/proc_fs: Add init_utsname() and proc_ops linux: Add projid.h and mnt_idmapping.h headers linux: Add hash.h header with hash_64 function linux: Add blockgroup_lock.h and delayed_call.h headers fs/ext4l/ext4_uboot.h | 250 ++++++-------------------------- include/linux/blockgroup_lock.h | 25 ++++ include/linux/capability.h | 1 + include/linux/delayed_call.h | 56 +++++++ include/linux/exportfs.h | 78 ++++++++++ include/linux/fiemap.h | 45 ++++++ include/linux/hash.h | 33 +++++ include/linux/mbcache.h | 60 ++++++++ include/linux/mnt_idmapping.h | 23 +++ include/linux/proc_fs.h | 25 ++++ include/linux/projid.h | 43 ++++++ include/linux/ratelimit.h | 35 +++++ include/linux/statfs.h | 42 ++++++ include/linux/uio.h | 19 +++ include/linux/utsname.h | 12 ++ include/linux/wait_bit.h | 47 ++++++ 16 files changed, 587 insertions(+), 207 deletions(-) create mode 100644 include/linux/blockgroup_lock.h create mode 100644 include/linux/delayed_call.h create mode 100644 include/linux/exportfs.h create mode 100644 include/linux/fiemap.h create mode 100644 include/linux/hash.h create mode 100644 include/linux/mbcache.h create mode 100644 include/linux/mnt_idmapping.h create mode 100644 include/linux/projid.h create mode 100644 include/linux/ratelimit.h create mode 100644 include/linux/statfs.h create mode 100644 include/linux/wait_bit.h