mirror of
https://github.com/opnsense/src.git
synced 2026-06-12 18:20:49 -04:00
sx: avoid gcc -Wunused-value
Also fixup whitespace while touching these lines. Reported by: GCC -Wunused-value Discussed with: imp Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D45875
This commit is contained in:
parent
6bd85498ec
commit
430be7e1ee
1 changed files with 6 additions and 6 deletions
12
sys/sys/sx.h
12
sys/sys/sx.h
|
|
@ -301,12 +301,12 @@ __sx_xunlock(struct sx *sx, struct thread *td, const char *file, int line)
|
|||
|
||||
#ifdef _STANDALONE
|
||||
/* since we have no threads in the boot loader, trivially implement no-op version */
|
||||
#define sx_xlock(s) (1)
|
||||
#define sx_try_xlock(s) (1)
|
||||
#define sx_xunlock(s) (1)
|
||||
#define SX_DUPOK 0
|
||||
#define SX_NEW 0
|
||||
#define SX_NOWITNESS 0
|
||||
#define sx_xlock(s) do {} while (0)
|
||||
#define sx_try_xlock(s) (1)
|
||||
#define sx_xunlock(s) do {} while (0)
|
||||
#define SX_DUPOK 0
|
||||
#define SX_NEW 0
|
||||
#define SX_NOWITNESS 0
|
||||
|
||||
static __inline void
|
||||
sx_init_flags(struct sx *sx, const char *description, int opts)
|
||||
|
|
|
|||
Loading…
Reference in a new issue