From patchwork Thu Jan 8 18:51:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1345 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=1767898345; bh=jAZ87fLRiil0mu0UHiSRb6H/mjkijUxCaHSWFfAUjpQ=; 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=p5Ezt34a/Aiua7x2SrRYY4qy8suG2XodRgOUMTuNQTIbXOYGGC7odHPXcD00ije5+ 75ETkc8imGd54Uq5TjlkDuP4iJiKZxASpBXPlsXKkdIrXfJ2GR+zbN/81hg+myK+Jw vDAREh3yiXJNOKcHufX+W45eomaH4qlor8DsVrmyMYc5yagUHbBlG9ojs4k6owfwM/ oRhEFv7UOt6I4+zSSmgmni0UQ12BVn1b/BFSfjKkV8F831z/s74rlYvG4W/vCOD8Lf fZiSd/u/PN0asheBRbANW9BwJ/pJ2U1DcnjoJj/uvhBJpVgiP0L7UhGwTdrT6/8i4l ngQTnITHxhu2Q== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 05B49691C8 for ; Thu, 8 Jan 2026 11:52:25 -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 djlgmWYT1CXb for ; Thu, 8 Jan 2026 11:52:24 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767898344; bh=jAZ87fLRiil0mu0UHiSRb6H/mjkijUxCaHSWFfAUjpQ=; 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=jJXS88P7i3ODYUgYQORG41FKZSyrcwlvz5QP5cfUGG7hKh8f6lRKuGzG+8lCGoqtK 7ceQ/SgjPYr54AT7Oblk+6EUpxiOsUbReiD4JS9/n+YC907PeDNAP7Rt9CALc1hFvB U1ntINXfJj3BMyZ5LKacjUKPcsbdDlKNR+MtFoljD7QCszpLXJMpDABR3OMZRdOktf uJPKsfMZnjeXjfBW00/12pPvEeATrS/kqC36hKGu4lCU6qisrhnuvQGzQ36z4ZHwJL 1evOlhSPlrtRNyrfW94zN/tctRhjgXMXMpdyXnmaehl4DPZdBswqAqMUzNT3i5prrB 975vjVg3uaO4w== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E971A691CC for ; Thu, 8 Jan 2026 11:52:24 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767898342; bh=K9sNiWdg42rvGN0d5oQRlbrs1zUIzlqp01WeHlqOjxw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dh75jehr/+towFEpVR6C9d6lWQUbjjQNoqKvkKC0+PJBx77wh5Sd/a2wEowSWvGRS tGUN3DsvohzAyQoQEIfTFpwAjkZps3RuknSQnOjB+AS1fPYbgG8SdwABUzUqJdrjTa wA1vvbDQ1a/xwnI1XOsepNxupqVvBdPalOjdGT8gxgHN5jpRgItSXMrsWQ2DeSjsvU 6U3H44OG9kr+ULcgxk+k6r1Pg7IOAfW3Zn5Dd68JGh4baNmGQWhjJAYV6KAhNWQGVL j1Os2v8NSmLGx0qLdeI02+gT0ynoty514YehRn3sJUKgvJ27y2zY6XLgyQBno7EOPD e3Ggn6LDfkqAA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id AD9EE691C4; Thu, 8 Jan 2026 11:52:22 -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 pw_KEbZfoiwG; Thu, 8 Jan 2026 11:52:22 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767898342; bh=2rawxvQFd1N37kQBKvarPz4RqLsSqFeFzDkqfXs6j/o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kYO5TG+8dnIQnNMJO4PQyVIKMRbx7H8QASahtBN4QPoiZxxL1kuZt/ZxYtNPAz8CT gbSXVxaWRCqXTdvPgt6JQFb1VTluCbniBC9YfYoEUCr9hnPF8mW3FyJRW0tPHFyGLr jHc4koeugllJEHRqkTo2ybYBpX1n53wskxmbqBTAlA2xJwa1UkmAnY8grk8P5cay0N ViXty6YegTGYXeKlx/UxCOqLW5GvhVGndqd7/UYtnME6KtutWmnKuFJNGa47vd7cHM hBNvNZxBKu8aZeOOAm7Bwu9FdpWrT+I0+E4cQWC1NXqRgyg96IiboJ/SN2p7Hd1vaK MOe1yOR896kIw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 2B80D69101; Thu, 8 Jan 2026 11:52:22 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Thu, 8 Jan 2026 11:51:19 -0700 Message-ID: <20260108185149.1995917-5-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260108185149.1995917-1-sjg@u-boot.org> References: <20260108185149.1995917-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: SRGNQDCRZXBLJK2LKJOE3EEFAXDKQFEX X-Message-ID-Hash: SRGNQDCRZXBLJK2LKJOE3EEFAXDKQFEX 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: Heinrich Schuchardt , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 04/21] ext4l: Use math64.h instead of defining locally 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 U-Boot has a linux/math64.h header which is supported on most boards. Use that instead of defining a new function. Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index f3dede424df..5676f76d4b4 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -3095,12 +3096,6 @@ static inline struct new_utsname *init_utsname(void) /* test_and_set_bit_lock - test and set a bit atomically */ #define test_and_set_bit_lock(nr, addr) test_and_set_bit(nr, addr) -/* div64_u64 - 64-bit by 64-bit division */ -static inline u64 div64_u64(u64 dividend, u64 divisor) -{ - return dividend / divisor; -} - /* time_is_before_jiffies - check if time is before current jiffies */ #define time_is_before_jiffies(a) ({ (void)(a); 0; })