From patchwork Sat Dec 27 20:42:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1080 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=1766868246; bh=0zZCgKzX/mgcSnNy9NoHn8cMWxO2oWXWdOAFCXS8hSg=; 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=lXbRjlI2TZlwlKUB/Ta4FFGFZ1hvPhKKu+yanza0itCHaqorFObXVoKbXfGI90LoP wTTMOD4XYCnVyR3hW7a3TzvQd8K5cGvpTz/Cm/0VU6ujLGYKzW4xFJy6fqn0IdRfK6 f1kqbGTAp0+5GUyXnzE8wq7GN32QzmP5a7fu2bs5rn5/bFUCo5RbxBFkQlUtPVBY7R ZBS6OEsK2bIfeesUE6pTK6zOxNkLE8YIUJHMGx+BAZnSeYBn1UIVKBfuEe2926sri4 9ppMuD+4pUcHHhOwxnYMFZaO/qqp9AlChL4PpmAtwuPrL9QW11zNkfa+eSxcmTFgAo PzU8RvLSP60SQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3955464E47 for ; Sat, 27 Dec 2025 13:44:06 -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 tKZKQwVeFMgg for ; Sat, 27 Dec 2025 13:44:06 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766868246; bh=0zZCgKzX/mgcSnNy9NoHn8cMWxO2oWXWdOAFCXS8hSg=; 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=lXbRjlI2TZlwlKUB/Ta4FFGFZ1hvPhKKu+yanza0itCHaqorFObXVoKbXfGI90LoP wTTMOD4XYCnVyR3hW7a3TzvQd8K5cGvpTz/Cm/0VU6ujLGYKzW4xFJy6fqn0IdRfK6 f1kqbGTAp0+5GUyXnzE8wq7GN32QzmP5a7fu2bs5rn5/bFUCo5RbxBFkQlUtPVBY7R ZBS6OEsK2bIfeesUE6pTK6zOxNkLE8YIUJHMGx+BAZnSeYBn1UIVKBfuEe2926sri4 9ppMuD+4pUcHHhOwxnYMFZaO/qqp9AlChL4PpmAtwuPrL9QW11zNkfa+eSxcmTFgAo PzU8RvLSP60SQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 215BF65079 for ; Sat, 27 Dec 2025 13:44:06 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766868244; bh=9cCgVzsvi1W4VWGDOnks9FRzqb1P3l80dSTEkrlFJ0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ss1CAQ0ZIo2oLBIT19699vxLz/lN/iumVuxXquguI+SXu4kDQuz9HM3YNJxdu2Iiy xwh5A2UtohaysGZnWa/la/h0q/3D3h+kpeyPE8tfTnu4DUG1C5bAMwnS83RwSRC0/h W2+A1fwUkhbnC/9WQ5Y2bcuXf9vfnEA5uGyg8AMwaZLT38jYVXA7EnMHh2YZYg/ZWy HmpqUvl+MqIGWiW5DQu4X9YOnYjlyjuaHUAh8OA4Zd00Un6eB1uGPCa633X9EPn9bq tXE2F9dGeciDV5JwIMjxb5BoeilXnAWhrfYxD97alcxAp8MvdEpygHFbal0OWIkug+ +0bG1gldYOyVA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B6CBA64E42; Sat, 27 Dec 2025 13:44:04 -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 QpwiZoDRWORg; Sat, 27 Dec 2025 13:44:04 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766868240; bh=zUeTMZ6lLecDbqStPVHUvY8Nk5D8+MAnWrKw2JIW9fA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TLaxmI94tSMGTB3ZefPX6v1Ls6AQMba9zm8uCJvzbPrBmT/jTbURN6n0Fd6/oAj4X 0MPuaYSo/WlEuHCWp9X7ZVw9k4J1Rjvy8BAmAo6Q5xVNG2qtjZtHFaTzYC95hIXJ9s EmvBV1ho9pAsCAe+rgztz5JopYjLDPVmZEQcW1jGY+9C6vgIqIdMigtv48FPxcujvo yFEnYnI7S9sCh4gYqM0hxg24FuDlEqu99AfgcrSxvwoHydgZ5utC6gnFj+X9PV8iyW AjuBqp0WMO+iJ/13NLyAESH1k5gGhanLf31SGEAGR0794UCfGC/oD9wie/Tw+9Ej8z C815MZ+dFQuGA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 3D31464E1F; Sat, 27 Dec 2025 13:44:00 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Sat, 27 Dec 2025 13:42:58 -0700 Message-ID: <20251227204318.886983-4-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251227204318.886983-1-sjg@u-boot.org> References: <20251227204318.886983-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: QGIUIEWNT3J6RA7PHGIMAOK5DE5BDLVZ X-Message-ID-Hash: QGIUIEWNT3J6RA7PHGIMAOK5DE5BDLVZ 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 , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 03/16] linux: buffer_head: Include atomic.h directly 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 The comment about atomic_t being expected from the including file is outdated. Include asm-generic/atomic.h directly to provide the atomic_t type definition. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- include/linux/buffer_head.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h index 0f8f5b6caf1..5fbcc757c80 100644 --- a/include/linux/buffer_head.h +++ b/include/linux/buffer_head.h @@ -12,10 +12,7 @@ #include #include #include -/* - * Note: atomic_t and sector_t are expected to be defined by the including - * file (ext4_uboot.h) before including this header. - */ +#include enum bh_state_bits { BH_Uptodate, /* Contains valid data */