smp: Make {acquire|release}_read_seqlock_inline cast explicitly.
Also fix braces.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user