Minor build fixes from asm-generic change.
- Drop _NOTE(CONSTCOND) usage in libspl this is Solaris specific. - Resolve conflicting OR and AND long prototypes.
This commit is contained in:
parent
3ae0e369f3
commit
18b7a966e4
|
@ -111,7 +111,6 @@ void atomic_add_ptr(volatile void *target, ssize_t bits)
|
||||||
VERIFY3S(pthread_mutex_unlock(&atomic_lock), ==, 0); \
|
VERIFY3S(pthread_mutex_unlock(&atomic_lock), ==, 0); \
|
||||||
}
|
}
|
||||||
|
|
||||||
ATOMIC_OR(long, ulong_t)
|
|
||||||
ATOMIC_OR(8, uint8_t)
|
ATOMIC_OR(8, uint8_t)
|
||||||
ATOMIC_OR(uchar, uchar_t)
|
ATOMIC_OR(uchar, uchar_t)
|
||||||
ATOMIC_OR(16, uint16_t)
|
ATOMIC_OR(16, uint16_t)
|
||||||
|
@ -130,7 +129,6 @@ ATOMIC_OR(64, uint64_t)
|
||||||
VERIFY3S(pthread_mutex_unlock(&atomic_lock), ==, 0); \
|
VERIFY3S(pthread_mutex_unlock(&atomic_lock), ==, 0); \
|
||||||
}
|
}
|
||||||
|
|
||||||
ATOMIC_AND(long, ulong_t)
|
|
||||||
ATOMIC_AND(8, uint8_t)
|
ATOMIC_AND(8, uint8_t)
|
||||||
ATOMIC_AND(uchar, uchar_t)
|
ATOMIC_AND(uchar, uchar_t)
|
||||||
ATOMIC_AND(16, uint16_t)
|
ATOMIC_AND(16, uint16_t)
|
||||||
|
|
|
@ -74,7 +74,7 @@ extern void __assert(const char *, const char *, int);
|
||||||
(u_longlong_t)__left, #OP, (u_longlong_t)__right); \
|
(u_longlong_t)__left, #OP, (u_longlong_t)__right); \
|
||||||
__assert(__buf, __FILE__, __LINE__); \
|
__assert(__buf, __FILE__, __LINE__); \
|
||||||
} \
|
} \
|
||||||
_NOTE(CONSTCOND) } while (0)
|
} while (0)
|
||||||
/* END CSTYLED */
|
/* END CSTYLED */
|
||||||
|
|
||||||
#define VERIFY3S(x, y, z) VERIFY3_IMPL(x, y, z, int64_t)
|
#define VERIFY3S(x, y, z) VERIFY3_IMPL(x, y, z, int64_t)
|
||||||
|
|
Loading…
Reference in New Issue