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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user