From patchwork Wed Jan 14 22:56:17 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1521 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=1768431531; bh=RdNCnjNutikt1YcB8EJ4nh6aUkl0z7d1nvZu+lAl25M=; 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=PEHs1wJXCSIKBzXJfWkGt7ky/qLFyaHIxezWaD2RWeOs/bF8puUZxNmEt3HnU1bNl ZC/n8xIbHt3gudcsd86r1p9c3RI3VkE5dL0UWt3zbotbBZ7sxAlX8M+1+4lto6oZlC VQcQgayWQgQ5kLw9SMo/Ref65dsoPSNDSM+4++b5yoW3LfTL6VxytyLERGdygWY8gA s7zQ2kL33wqXup0sR4NbKvbLZSC+ehWCgKwP/UaYK+XDLRMg0/lh4QF5oc/9ZT4ciM MOvH4wMcjSckucSsH+abinb/J06clxopDFaN3HlzIKwEMa/xmGPTIlCauRW3q+UiAH izj74O1/bkLaw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C94F469360 for ; Wed, 14 Jan 2026 15:58:51 -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 7siN8TO9UNvm for ; Wed, 14 Jan 2026 15:58:51 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431531; bh=RdNCnjNutikt1YcB8EJ4nh6aUkl0z7d1nvZu+lAl25M=; 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=PEHs1wJXCSIKBzXJfWkGt7ky/qLFyaHIxezWaD2RWeOs/bF8puUZxNmEt3HnU1bNl ZC/n8xIbHt3gudcsd86r1p9c3RI3VkE5dL0UWt3zbotbBZ7sxAlX8M+1+4lto6oZlC VQcQgayWQgQ5kLw9SMo/Ref65dsoPSNDSM+4++b5yoW3LfTL6VxytyLERGdygWY8gA s7zQ2kL33wqXup0sR4NbKvbLZSC+ehWCgKwP/UaYK+XDLRMg0/lh4QF5oc/9ZT4ciM MOvH4wMcjSckucSsH+abinb/J06clxopDFaN3HlzIKwEMa/xmGPTIlCauRW3q+UiAH izj74O1/bkLaw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B90566934D for ; Wed, 14 Jan 2026 15:58:51 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431529; bh=ULQrK4LlxmjKazAH9ABlAuC6Yi7GJotcpXKOM9TwLlc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eXMoePPr70cRyTeVJdqyDYk+sjvgFX/LhuuWQwejPmRGR5s2N+wRePgWRdFqlZu8A j2El5Jyq90Lejt+rrjWetqftPWz4dyigkIJ2NNesXNsZ/ilycsCtkWQvCkbGHoZbq6 9ULU63jv/7ezHovNfS2KlWFUc/Jzrh3qMyaGDfVi/4R+uhdtj1oh66sw/cx7IS4v+E kyFjpRwlPXIw7EZvkRKVpbRl8Avt3sud0dthTlu3xGrSnloSwXx//W70TEBKRoUnnj o5Xgn4bjY+HMQj+1XVcRhrPJEHTgBLYx+jrp3IasdDNBwUu1R5SAHntYX7kYFU8ieZ Zj3JAdlaPvKVw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BA40A6934D; Wed, 14 Jan 2026 15:58:49 -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 6GsQ-weoOJR0; 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=1768431525; bh=m3qExGfzGGhdy4BNgurCAgtDqe3tuhfYRmX9QQQ21nw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uqhecy70FMc0q9NnNz2e3++Qe35NTzq8iV4iYoyowub8uKVjw2EVibUscXav/T+G7 /P1Y+wzimQmbe6Gce0x188ID4sp8fVrfzjJgHzRWBjKdWqHwy8ANWiMtBCtibhhoMM dHmz8gT3ueFWYYxR7PL2ZILadPJWplurz5rCDN3SuKQiI3Uv4sXCjvpmrTDoFB9swT 01ouF4V2cSaNjDIagG1lWkSImsPUemICMQpd5dvfjS/RroKwqsRG4PVKfaGTus78Pk tcjE3+wBUxMXXUAcgrp7LZlxlpknqpffXHG7HcUqF2VFsF56FBg3KpYXXPsMHecQ15 Y+n83U74nLTQw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id E8862692EF; Wed, 14 Jan 2026 15:58:44 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 14 Jan 2026 15:56:17 -0700 Message-ID: <20260114225635.3407989-28-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: VIRAQYLUB5ACP74K27RG4CBTTJ5E5VYT X-Message-ID-Hash: VIRAQYLUB5ACP74K27RG4CBTTJ5E5VYT 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 27/34] ext4l: Use linux/blk_types.h for blk_opf_t 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 Use the existing linux/blk_types.h header for blk_opf_t instead of defining it locally in ext4_uboot.h. This avoids duplication and uses the proper __bitwise annotation for type safety. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 08d28fd01ad..68acbd489f4 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -78,10 +78,12 @@ * atomic_t, atomic64_t are now in asm-generic/atomic.h * MAX_JIFFY_OFFSET is now in linux/jiffies.h * BDEVNAME_SIZE is now in linux/blkdev.h + * blk_opf_t is now in linux/blk_types.h */ #include #include #include +#include /* atomic_dec_if_positive, atomic_add_unless, etc. are now in asm-generic/atomic.h */ @@ -507,8 +509,7 @@ struct folio; /* qsize_t - quota size type */ typedef long long qsize_t; -/* blk_opf_t - block operation flags */ -typedef unsigned int blk_opf_t; +/* blk_opf_t is in linux/blk_types.h */ /* bh_end_io_t and struct buffer_head are in linux/buffer_head.h */