linux: buffer_head: Include atomic.h directly

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>
This commit is contained in:
Simon Glass
2025-12-22 20:52:30 -07:00
parent 9db339213d
commit 1b4240fda6

View File

@@ -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 */