From patchwork Wed Jan 21 22:08:36 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1749 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=1769033444; bh=WZbN/GLdP0DIoK8k8hIfc/ZMK4cPBiMn+ZE1OnVVR+w=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=XdVFUx7A2bhP0WPDcSE5drWNb/OTqI/ZZbpdZx5zzLTcPCBpiGIitInv+hBsBDni7 /ptI+JgdvUBJYGK/PoPlY6JDQtmabrEfQqD8bnYxUCBBpgSRhfSTRYpLZtOj+lLy+o 3NEQ0SwzT9rb0m7ymswM5BwMbMI4yGltK3342EHcNGi8gmA6dNHQe1sHuht52m8cSr SvB9/D84JdeBcnN6NbRVoabT1Ygi9OXMamyZmk6btD+oeUMchq0nb6J6LTF63KKwex ze+1bnEpgMvYoy78RlQrG8zMabB3MOhrUqKCeHbDZM+ZLgJbJ69vs9KFiK0/oLjpAP rSdx93H1lfOlA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id EB34A69605 for ; Wed, 21 Jan 2026 15:10:44 -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 Let1jWNBxUBf for ; Wed, 21 Jan 2026 15:10:44 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033444; bh=WZbN/GLdP0DIoK8k8hIfc/ZMK4cPBiMn+ZE1OnVVR+w=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=XdVFUx7A2bhP0WPDcSE5drWNb/OTqI/ZZbpdZx5zzLTcPCBpiGIitInv+hBsBDni7 /ptI+JgdvUBJYGK/PoPlY6JDQtmabrEfQqD8bnYxUCBBpgSRhfSTRYpLZtOj+lLy+o 3NEQ0SwzT9rb0m7ymswM5BwMbMI4yGltK3342EHcNGi8gmA6dNHQe1sHuht52m8cSr SvB9/D84JdeBcnN6NbRVoabT1Ygi9OXMamyZmk6btD+oeUMchq0nb6J6LTF63KKwex ze+1bnEpgMvYoy78RlQrG8zMabB3MOhrUqKCeHbDZM+ZLgJbJ69vs9KFiK0/oLjpAP rSdx93H1lfOlA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id DB2A5695FB for ; Wed, 21 Jan 2026 15:10:44 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033443; bh=PuBuy76pvYFIAoOi1AYRS6DYAievsfDLkldmnrEBXII=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L9HMKbDDjrhImbMS+D1fvKa92NB+RoCvpCUa2Ih/JEsAVa4elcqNIMsGL0ibiA1NM P4WWJXCkuWNnTF//lPbXtF0eULPK2UO0kEs6+Pj+KGBjYKRQPI42xMyckE8QLxyjF9 GRhgtthP0i7U1XbF352evqhCdXUkoID3kcseQ40emxSKHESj7L5kHdaJwYK7TgJdhG LncEZIpIHRWdCtMuDv7Hfqci4X5goM+aMS5x+26M40XQv+L+5AMj3TBg/+gDbhJbwe medNKfLChJ8Dc5P4lDf2ShoWWp7sm+weQ5x+9kTKIi9S+eT5D7v43k7lU2A4vfxQLb 1i0Ng5+qbuKVw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 19271695F2; Wed, 21 Jan 2026 15:10:43 -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 sahyjxya4gNu; Wed, 21 Jan 2026 15:10:43 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033439; bh=DLqGBIHnHnKIcL3PlV+9+/AxSg4aJ4WcyF8c0hwN+iY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jKaOFQB0B/abX63hsNfy+FM4yGOA0SwYLf5M/tYB37lNo8Uj/+oVxwMbrahq+nWpO w9rmZ1J6GFo8pDly/XuGIenCFh5xCck00XztFN7vs/D7Fyr93zvnsrNo6tV6H6uZz+ tJpIBrIxkPSMVLm2gaOoCDVCJKW7sjQVNjxowA08OcBQD++0qsTpwdUW5+5r8DzO7l 5WhiRO6ZW+fZDET+zou0VdDA0tOlSCshvu5MsqRGvIkVfp1MRG9tJQ49/cQm6Cnfgq Ei9FtdRISl2jZX8/f3Mh52saSAkLdEgNb2gTzQ8AqunWa3ZoflMskgSa0IM67FTmlp HLyXoLCCSESZg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id C48FE695FB; Wed, 21 Jan 2026 15:10:38 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 21 Jan 2026 15:08:36 -0700 Message-ID: <20260121220857.2137568-24-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260121220857.2137568-1-sjg@u-boot.org> References: <20260121220857.2137568-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: FZ5NYRHSWJYMLUVLXYQDDG45XZBG2HZ3 X-Message-ID-Hash: FZ5NYRHSWJYMLUVLXYQDDG45XZBG2HZ3 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 , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 23/33] ext4l: Move iomap stubs to linux/iomap.h 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 Move iomap_bmap() and iomap_swapfile_activate() stubs to linux/iomap.h where other iomap stubs are already defined. This reduces ext4_uboot.h from 444 to 440 lines. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 4 ---- include/linux/iomap.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 240d3bf2fb2..2954723e2de 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -218,10 +218,6 @@ struct path; /* File operations */ #define vmf_fs_error(e) ((vm_fault_t)VM_FAULT_SIGBUS) -/* iomap stubs */ -#define iomap_bmap(m, b, o) ({ (void)(m); (void)(b); (void)(o); 0UL; }) -#define iomap_swapfile_activate(s, f, sp, o) ({ (void)(s); (void)(f); (void)(sp); (void)(o); -EOPNOTSUPP; }) - /* * Additional stubs for dir.c */ diff --git a/include/linux/iomap.h b/include/linux/iomap.h index a426cf35f40..9240ef443bd 100644 --- a/include/linux/iomap.h +++ b/include/linux/iomap.h @@ -105,4 +105,8 @@ iomap_seek_data(struct inode *inode, loff_t pos, const struct iomap_ops *ops) return -EOPNOTSUPP; } +#define iomap_bmap(m, b, o) ({ (void)(m); (void)(b); (void)(o); 0UL; }) +#define iomap_swapfile_activate(s, f, sp, o) \ + ({ (void)(s); (void)(f); (void)(sp); (void)(o); -EOPNOTSUPP; }) + #endif /* LINUX_IOMAP_H */