From patchwork Wed Jan 14 22:56:18 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1522 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=1768431533; bh=UTjHPJDmexrsRAHY+pgFaJHXvbJ3FKsag35on+nh19s=; 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=cdw0Z4RLhUdTkDzW0/D91BfyUmOYKP+WmT25hbRJdy5v8jfqqrkORuiILWZ1XS5+F Pbu3LqiPMpozTAEFQuJi8/8BA7Z0gSQFFGIIugz3ob0To7/0iTRrzTwS9vcjw1sjcS yQU7HB4v6yTMUKsvjopXYS/8XCkeOmcaR+zEbafCq2SMLCj0GhhVbp4YLdLjK+rHQn wddYFthbeV7lpJwCrIrSVmKJctM/hVDOAKz3BpiiZzL9kwzi+xtTbEaRNsOfswm6lU oQVlyNWIL5dFO+WVute+68U01/Iu64NpsuFjdtjqXLYHOwuWihVJv6TV/jRUHTmc09 pqBHJv9rl2TGA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4406669360 for ; Wed, 14 Jan 2026 15:58:53 -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 ZJLLjChWW0x5 for ; Wed, 14 Jan 2026 15:58:53 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431532; bh=UTjHPJDmexrsRAHY+pgFaJHXvbJ3FKsag35on+nh19s=; 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=wExm6MNZk4/mMBEYB7agGR9iLN5gyJxUWUBsZNtwjZGDbLkD7ae67sj+d0pWW+LEC WAaSFdhbMgQT0Xz/4GFky4bwp4Nftfezul1SMO6YSS704mtvqlIZRnNkMOd2k0AM5D 0aEa2yXXKRKcxYeQXV+NUxz09unuW2FXjLZBu7Yd9E+sbWDxGnrToX2IJZtVpnc6Bk PA4VjAE1rvLHsWIZZGpmnQ14DNCTOy0noCnmoKajXOi5Qtah6GLMVMrbfcyVktuL5M 60yrKFawYXE1xSsppRBpaeIwjWNej7DEh28UMTO7+3gXDy6SF4Qpr727cOB1HlR6Y6 4KIipeiNs+KNg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C886A69361 for ; Wed, 14 Jan 2026 15:58:52 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431530; bh=/L3GW3CpBfpg40e+qMu4Hbv8hhRFSGRku4br1mqVkl0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FVKIQyrSBoXO8PfdOVtxGOynw49bCWRswaLGlmfC5zzA4qgkF+Aqy6HoQvqdgDqS8 FOMbYNiau/cnwvc5FwVh06rTDKw6hZafT8Q/+uPy/CL25R1PzaGznU9vRDWtw7p985 qRYydEGdQeDluDjnPZZ5H38/b9Bp73VM488W0Gptmrr8CDciFOfZkhj4bllSE5i8Uv iDZAv0X96QFbg08YVP5wR1xu6S2tDuMH8O1QynaLNtZpVoqcZWrVcjTRjMyzwKRDcO Q6P3eryioe7neQKjgT+wE4BNEUACJ5xuFxlg6NbJHrDaAMTX+DLti89DJaIG0uU5xz Vs9WglBEW1LwA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0BE68692EF; Wed, 14 Jan 2026 15:58:50 -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 U17EdrYf_kg8; Wed, 14 Jan 2026 15:58:49 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431529; bh=bWA5YWKpow3p5atJjaaN4Zl2qzoN0XD+I6ZdGt/AJUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qXeqDQdTfpypnOKqN8YhpJMO0qZ8jHS+qiISM2atGgfo3VDSKninjuyKsuhxGG9lT bcoU3uJccVN+AnpLjiI1+ouMjRBQBJjOrH5LsC7OJhvIoq4e5nL1EKqP9NjyfURZfx gPpDhXzQlO3gmE2OWmeWnx9lV/7Nma4TNruV8sttl0Mislv+ie7l54kB8KBPPQZDjB I1RhYAEkH7442/mLQzjuGQcbjtv5NPWN2kxNFS5gt+shD2NXl6r8Z3oXOfujXs41Za hUE8Uo9wOlAVObHkjqwngFqj/uddNmv1YwuBbb5aPmDSSnPAsmTielDrWuzJVE100o tl90RS2A6Jy+g== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 813266913F; Wed, 14 Jan 2026 15:58:49 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 14 Jan 2026 15:56:18 -0700 Message-ID: <20260114225635.3407989-29-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: JCHEJIJ7A767IPZFU5EMRSBDAQUQTRLQ X-Message-ID-Hash: JCHEJIJ7A767IPZFU5EMRSBDAQUQTRLQ 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 28/34] ext4l: Move DT_* directory entry types to linux/fs.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 DT_* directory entry type constants from ext4_uboot.h to linux/fs.h where they belong alongside struct dir_context and other directory-related definitions. This includes: DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK and DT_WHT Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 11 +---------- include/linux/fs.h | 11 +++++++++++ 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 68acbd489f4..cc0cb48fc24 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -513,16 +513,7 @@ typedef long long qsize_t; /* bh_end_io_t and struct buffer_head are in linux/buffer_head.h */ -/* Directory entry types */ -#define DT_UNKNOWN 0 -#define DT_FIFO 1 -#define DT_CHR 2 -#define DT_DIR 4 -#define DT_BLK 6 -#define DT_REG 8 -#define DT_LNK 10 -#define DT_SOCK 12 -#define DT_WHT 14 +/* DT_* directory entry types are in linux/fs.h */ /* mnt_idmap - stub */ struct mnt_idmap { diff --git a/include/linux/fs.h b/include/linux/fs.h index af9cf21692b..7963e931fad 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -173,6 +173,17 @@ static inline void inode_init_once(struct inode *inode) /* S_ISDIR, etc. - already in linux/stat.h */ #include +/* Directory entry types */ +#define DT_UNKNOWN 0 +#define DT_FIFO 1 +#define DT_CHR 2 +#define DT_DIR 4 +#define DT_BLK 6 +#define DT_REG 8 +#define DT_LNK 10 +#define DT_SOCK 12 +#define DT_WHT 14 + /* Directory context for readdir iteration */ struct dir_context; typedef int (*filldir_t)(struct dir_context *, const char *, int, loff_t,