diff --git a/headers/private/kernel/smp.h b/headers/private/kernel/smp.h index 0da58a0cd3..dc45086792 100644 --- a/headers/private/kernel/smp.h +++ b/headers/private/kernel/smp.h @@ -282,14 +282,16 @@ release_write_seqlock_inline(seqlock* lock) { static inline uint32 -acquire_read_seqlock_inline(seqlock* lock) { - return atomic_get((int32*)&lock->count); +acquire_read_seqlock_inline(seqlock* lock) +{ + return (uint32)atomic_get((int32*)&lock->count); } static inline bool -release_read_seqlock_inline(seqlock* lock, uint32 count) { - uint32 current = atomic_get((int32*)&lock->count); +release_read_seqlock_inline(seqlock* lock, uint32 count) +{ + uint32 current = (uint32)atomic_get((int32*)&lock->count); return count % 2 == 0 && current == count; }