From patchwork Wed Jan 14 22:55:51 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1495 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=1768431418; bh=fmB8DZWwml1/8HKWW8AChc7mQOLe54+Ify63DBn4MBA=; 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=mJJGC/0cea9cEO7bMHavYEw1bE24o2mDmrUgY1Ltg2qBcAOabnIiBbguEH0MPaSxC qANGg3ZM+922qNEjz5WcYEglkjEdTTZskwVn+2VdbWA7MT8GZn5Jx0/qWMmgjuTI0h 0dY+BUDMAUdazDY5orZVqe50l0wH3HrLYndHrzLJPEdiyKHC42daIF7xU8uwsp/p64 gKRGJmRx0sOI/EzluPMGG9A1C2I6WljAjc2WSfRPObXv7jfPxjgEAJ2aYIU7cI6J4K Zba2r97TrEtwgm1RQHuj1GEGU0N5Cyjkpk6N9ku0GVbzytjdV1g5lwPJ4L2vxqF0TN z93XEMAT3p2Iw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 20114692F1 for ; Wed, 14 Jan 2026 15:56:58 -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 Zln4Uis7LCWB for ; Wed, 14 Jan 2026 15:56:58 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431418; bh=fmB8DZWwml1/8HKWW8AChc7mQOLe54+Ify63DBn4MBA=; 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=mJJGC/0cea9cEO7bMHavYEw1bE24o2mDmrUgY1Ltg2qBcAOabnIiBbguEH0MPaSxC qANGg3ZM+922qNEjz5WcYEglkjEdTTZskwVn+2VdbWA7MT8GZn5Jx0/qWMmgjuTI0h 0dY+BUDMAUdazDY5orZVqe50l0wH3HrLYndHrzLJPEdiyKHC42daIF7xU8uwsp/p64 gKRGJmRx0sOI/EzluPMGG9A1C2I6WljAjc2WSfRPObXv7jfPxjgEAJ2aYIU7cI6J4K Zba2r97TrEtwgm1RQHuj1GEGU0N5Cyjkpk6N9ku0GVbzytjdV1g5lwPJ4L2vxqF0TN z93XEMAT3p2Iw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 08E3E6933D for ; Wed, 14 Jan 2026 15:56:58 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431416; bh=nVBeaqCVLRIPb0lLn+D0yyeeFTUOyA6LA2w02P5Ocrg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uxGXj0CkrDCkLoXW3ZP3K1NhlFFwZviUjeSpQUn7DWjVbfApKFJ/cFCRRX80bk/fv fTLkkyiWNUsEbsa3fk1LGzfkY8k0ZbRzkSKSh38ZhgaFtOl6Qx2tgVjnSEbw0AVk8n GM/LwStEVgSwny+rhebna7Sh58NzvS0awKAsQofHT8Wz03d7gqTJa1YHG+eKWZRHBL 5XjLmnXWhUdLkslBRJrXl8CUjEESk6RS1/D1h0q2Q1LeyTBldBz+02MuivE04tJsvL 9XbqgRkB85E10PaPKHVTnMyBjDkpCsTM/lzzWrSu/7n8rpoXbFzoJbFPIoMggeCEQD vHhgQfKiq1fAA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0FAEB692F1; Wed, 14 Jan 2026 15:56:56 -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 NipI5mIIfNkL; Wed, 14 Jan 2026 15:56:55 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431412; bh=OnAEWJFW+CH3fH7DAiHvV/A85BtcmYrzeMZKWeMukr4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EzaM9rkiLhaxsWFxxTsjf1RxJIBGl2pENR2ox2bzrL0Vi/W5csH4kaumy2GS0Vev9 9uIrO/t7nMFHhfS7NMsVREqwdu1ItrXp7/0qvTB5H5QVZk+KZN+ZZjbLf2lMmMVCpz fqpOL4Jtk3pPPKR9JN11cC1ZmZrpdaPpBP/6rNvV7v7EhpthIL6/9OpPP4zyiA9lIY vqhBeWY6EH0y90a0lAKqtiWae+0TCuM3mhZ8ipbggieNFD4khEO3ysz45KjdFJqppR /rrSNbHVP/GsjYzGgo4xd5v3bw227APJ4AefDWy+913uFxkgVq+p3sysRxewaXMDV7 XF/yE7K/L0Uug== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id B2A18692EF; Wed, 14 Jan 2026 15:56:51 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 14 Jan 2026 15:55:51 -0700 Message-ID: <20260114225635.3407989-2-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260114225635.3407989-1-sjg@u-boot.org> References: <20260114225635.3407989-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: VHZHHHDFY5YVJ334YTEZAG4GR4YKIDTM X-Message-ID-Hash: VHZHHHDFY5YVJ334YTEZAG4GR4YKIDTM 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 01/34] ext4l: Move timespec64 and time64_t to linux/time.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 the timespec64 structure and time64_t typedef from ext4_uboot.h to include/linux/time.h where they logically belong. This reduces duplication and aligns with Linux kernel header organisation. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 11 +++-------- include/linux/time.h | 8 ++++++++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 4a7e41a75a1..b2a33a17198 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -38,6 +38,7 @@ #include #include #include /* Real rbtree implementation */ +#include /* For timespec64, time64_t */ #include /* For crc32() used by crc32_be */ /* @@ -70,11 +71,7 @@ static inline u32 rol32(u32 word, unsigned int shift) return (word << (shift & 31)) | (word >> ((-shift) & 31)); } -/* Time types */ -struct timespec64 { - time_t tv_sec; - long tv_nsec; -}; +/* Time types - timespec64 and time64_t are now in linux/time.h */ /* * ktime_t, sector_t are now in linux/types.h @@ -544,9 +541,7 @@ struct fscrypt_dummy_policy { }; /* errseq_t is defined in linux/fs.h */ - -/* time64_t */ -typedef s64 time64_t; +/* time64_t is now in linux/time.h */ /* IS_NOQUOTA - stub */ #define IS_NOQUOTA(inode) (0) diff --git a/include/linux/time.h b/include/linux/time.h index 0de44cff8d7..b23598295c2 100644 --- a/include/linux/time.h +++ b/include/linux/time.h @@ -166,4 +166,12 @@ time64_t mktime64(const unsigned int year, const unsigned int mon, const unsigned int min, const unsigned int sec); #endif +/* 64-bit time representation with nanoseconds */ +typedef s64 time64_t; + +struct timespec64 { + time_t tv_sec; + long tv_nsec; +}; + #endif