From patchwork Wed Jan 21 22:08:27 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1740 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=1769033409; bh=BsCc5TsSZbx5flKhDBd9X0+zrw3IqdefrEeQbxk5dNc=; 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=Vh6FP+GtwQqI0CTyxTpPJYSTo4K2+W+0zRlEcVKUraulz8SKpHN3ewV1TCsRksnec If7oBDxEqeuqSuKwCi6UW3RMiDcFgNfzc8Cl2z/IFFn0HzWJU2SeqNasndeYERgpCa q+qWyZ+qj1FaoUCT8w5qBtcT37hx5krc5NzeB1U9Vtf7HmkgazaYYdTWEWZWC74A1L vorZF3mWfb9aTfM2z05xBsniMU9edByLNMVxBgOT8kgnDVdJoWP72nfrAwiAIUF37S CqfUZjcSemhShYYdo9RwPHxjIPKrIoC3OXpe19edmefT7GsQ4WOuZhHKd7s82AyXIb 4MARw9lOVm6Ww== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5EC0E69601 for ; Wed, 21 Jan 2026 15:10:09 -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 R0y1PnhmtIZf for ; Wed, 21 Jan 2026 15:10:09 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033409; bh=BsCc5TsSZbx5flKhDBd9X0+zrw3IqdefrEeQbxk5dNc=; 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=Vh6FP+GtwQqI0CTyxTpPJYSTo4K2+W+0zRlEcVKUraulz8SKpHN3ewV1TCsRksnec If7oBDxEqeuqSuKwCi6UW3RMiDcFgNfzc8Cl2z/IFFn0HzWJU2SeqNasndeYERgpCa q+qWyZ+qj1FaoUCT8w5qBtcT37hx5krc5NzeB1U9Vtf7HmkgazaYYdTWEWZWC74A1L vorZF3mWfb9aTfM2z05xBsniMU9edByLNMVxBgOT8kgnDVdJoWP72nfrAwiAIUF37S CqfUZjcSemhShYYdo9RwPHxjIPKrIoC3OXpe19edmefT7GsQ4WOuZhHKd7s82AyXIb 4MARw9lOVm6Ww== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4D221695F7 for ; Wed, 21 Jan 2026 15:10:09 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033408; bh=M4McJ1H5uzOPgw2/8Q7B473/xCv8RlJ7qz5nCpo9Lls=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OFgdjeNaZ8woXNCL9LWOcxtGuAYtBlt21YCGPXP/z8EZ7cB5U1uwK4StttfGRPQBA ngxKQWhJBHHIzx3L0yHlIf30A1ZzdzA18KvHAgz2CJc2uQwA23YDDguD8ShCBN+xvQ glWEFkbjNHW9/pgZUYmsedkNUW4xDkOzTu9AHyd8k/ob9IzGERH6sjnPu240RLKXTO EzQlq/FRlrziK6gP1L327DwNgmhyRlNGekoUZ6p+4mFn0nWW1s2h2u3sbqR9fBX7Jt KoOJDXEd4f4eMyqGaEPXFO6ye1NOn/J0wvbRx4Dck/pPlBgsrB/uEnYmTHWB7cNfbs vO1fh9p0mlrOA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 27204695F7; Wed, 21 Jan 2026 15:10: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 tA2y--XIrK_w; Wed, 21 Jan 2026 15:10:08 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033401; bh=o1j0n9rcB48Pn074Vv9+j7Sw+nVK/XVJkdVCl06VZ8U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n91mooLHmaQjzLZ/Ctujz4KZAKjbyD5EER80qyJNPiYCFoyOLOANxGSzfVVZq4vxU +SE8ucCa+stvePhyk2Mbgz24V8pDLykxVLO6Hsmn6MqTzRblxItNRBq6tgAc4hhfYX cye8bK2ZAVsdy0B/eUVRfAifCxcGSMfstroyM6A6sAR6LgrkCWKdT9qZ1mBfTl2AT2 IaPcCUpATNtkF5lTjdmHDYyKb8HaYMh5Q/NF6f2azrh/Vd9GDMpTD5hNX5kI2RcvWG IMiYqdmSu/jUTypu1wz8OTzqm14C8EDFcLsdUdeQKA2zM5CtUGcQRy7xuXUktDcJkL bdpxpG0Z2hAaw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id F130C695F2; Wed, 21 Jan 2026 15:10:00 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 21 Jan 2026 15:08:27 -0700 Message-ID: <20260121220857.2137568-15-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: C4Y7HVIO3DSTHD77WHCHDBYOWZADDVGJ X-Message-ID-Hash: C4Y7HVIO3DSTHD77WHCHDBYOWZADDVGJ 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 14/33] ext4l: Move filemap_fdatawait_range_keep_errors() to pagemap.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 this filemap function to linux/pagemap.h alongside the other filemap_ stubs already defined there. This reduces ext4_uboot.h from 547 to 545 lines. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 2 -- include/linux/pagemap.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 0c214501cef..f1c4a5a0fca 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -467,8 +467,6 @@ int sync_filesystem(void *sb); #include /* smp_mb__after_atomic is now in linux/smp.h */ #define ktime_get_coarse_real_ts64(ts) do { (ts)->tv_sec = 0; (ts)->tv_nsec = 0; } while (0) -#define filemap_fdatawait_range_keep_errors(m, s, e) \ - ({ (void)(m); (void)(s); (void)(e); 0; }) #define crc32_be(crc, p, len) crc32(crc, p, len) /* ext4l support functions (support.c) */ diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index eb689fa885f..22c7f05c57e 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -155,6 +155,8 @@ void mapping_clear_folio_cache(struct address_space *mapping); #define filemap_fdatawrite_range(m, s, e) ({ (void)(m); (void)(s); (void)(e); 0; }) #define filemap_flush(m) ({ (void)(m); 0; }) #define filemap_write_and_wait(m) ({ (void)(m); 0; }) +#define filemap_fdatawait_range_keep_errors(m, s, e) \ + ({ (void)(m); (void)(s); (void)(e); 0; }) #define filemap_release_folio(folio, gfp) ({ (void)(folio); (void)(gfp); 1; }) #define mapping_tagged(m, t) (0) #define tag_pages_for_writeback(m, s, e) do { } while (0)