Date: Mon, 28 Aug 2006 23:38:47 +0900 From: Jun Kuriyama <kuriyama@imgsrc.co.jp> To: Current <freebsd-current@FreeBSD.org> Cc: Jun Kuriyama <kuriyama@imgsrc.co.jp> Subject: INVARIANTS in sys/sys/sx.h Message-ID: <7m3bbhx6vc.wl%kuriyama@imgsrc.co.jp>
next in thread | raw e-mail | index | archive | help
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@imgsrc.co.jp> // IMG SRC, Inc.
<kuriyama@FreeBSD.org> // FreeBSD Project
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7m3bbhx6vc.wl%kuriyama>
