linux: Drop duplicate atomic types from types.h
The atomic types were incorrectly added to linux/types.h but they
already exist in asm-generic/atomic.h. Remove them and update ext4l
to include the correct header.
Fixes: e911e32822 ("linux: Move common types to types.h")
Series-to: concept
Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
@@ -165,28 +165,6 @@ typedef s64 ktime_t;
|
||||
typedef u64 sector_t;
|
||||
typedef u64 blkcnt_t;
|
||||
|
||||
/* Atomic types - stubs for single-threaded U-Boot */
|
||||
typedef struct {
|
||||
int counter;
|
||||
} atomic_t;
|
||||
|
||||
#ifdef CONFIG_64BIT
|
||||
typedef struct {
|
||||
s64 counter;
|
||||
} atomic64_t;
|
||||
#else
|
||||
typedef struct {
|
||||
long counter;
|
||||
} atomic64_t;
|
||||
#endif
|
||||
|
||||
#define atomic_read(v) ((v)->counter)
|
||||
#define atomic_set(v, i) ((v)->counter = (i))
|
||||
#define atomic_inc(v) ((v)->counter++)
|
||||
#define atomic_dec(v) ((v)->counter--)
|
||||
#define atomic64_read(v) ((v)->counter)
|
||||
#define atomic64_set(v, i) ((v)->counter = (i))
|
||||
|
||||
#ifdef __linux__
|
||||
struct ustat {
|
||||
__kernel_daddr_t f_tfree;
|
||||
|
||||
Reference in New Issue
Block a user