[Concept,03/16] linux: buffer_head: Include atomic.h directly

Message ID 20251227204318.886983-4-sjg@u-boot.org
State New
Headers
Series fs: ext4l: Complete read-only filesystem support (Part I) |

Commit Message

Simon Glass Dec. 27, 2025, 8:42 p.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

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 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---

 include/linux/buffer_head.h | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
  

Patch

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 <linux/types.h>
 #include <linux/list.h>
 #include <linux/spinlock.h>
-/*
- * Note: atomic_t and sector_t are expected to be defined by the including
- * file (ext4_uboot.h) before including this header.
- */
+#include <asm-generic/atomic.h>
 
 enum bh_state_bits {
 	BH_Uptodate,	/* Contains valid data */