INVARIANTS in sys/sys/sx.h
- From: Jun Kuriyama <kuriyama@xxxxxxxxxxxx>
- Date: Mon, 28 Aug 2006 23:38:47 +0900
I found this when I compiled my kernel with INVARIANTS without
INVARIANT_SUPPORT.
In src/sys/sys/sx.h, _sx_assert() is defined in INVARIANT_SUPPORT,
#ifdef INVARIANT_SUPPORT
void _sx_assert(struct sx *sx, int what, const char *file, int line);
#endif
but sx_assert() uses this function in INVARIANTS option.
#ifdef INVARIANTS
#define sx_assert(sx, what) _sx_assert((sx), (what), LOCK_FILE, LOCK_LINE)
#else
#define sx_assert(sx, what)
#endif
Is this consistent?
--
Jun Kuriyama <kuriyama@xxxxxxxxxxxx> // IMG SRC, Inc.
<kuriyama@xxxxxxxxxxx> // FreeBSD Project
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: INVARIANTS in sys/sys/sx.h
- From: John Baldwin
- Re: INVARIANTS in sys/sys/sx.h
- From: Ruslan Ermilov
- Re: INVARIANTS in sys/sys/sx.h
- From: Erik Trulsson
- Re: INVARIANTS in sys/sys/sx.h
- Prev by Date: Re: Dell PowerEdge 850 bge(4) RELENG_6 (WAS: Re: bge(4) problem)
- Next by Date: Re: INVARIANTS in sys/sys/sx.h
- Previous by thread: installworld problem
- Next by thread: Re: INVARIANTS in sys/sys/sx.h
- Index(es):
Relevant Pages
|
|