Re: INVARIANTS in sys/sys/sx.h
- From: John Baldwin <jhb@xxxxxxxxxxx>
- Date: Tue, 29 Aug 2006 16:32:30 -0400
On Monday 28 August 2006 10:38, Jun Kuriyama wrote:
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?
It's a bug, sorry.
--
John Baldwin
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"
- References:
- INVARIANTS in sys/sys/sx.h
- From: Jun Kuriyama
- INVARIANTS in sys/sys/sx.h
- Prev by Date: Re: Linuxulator: Unbreak Mozilla, Firefox and RealPlayer
- Next by Date: Re: radeon(4)+apic(4) on SMP environment causes panic
- Previous by thread: Re: INVARIANTS in sys/sys/sx.h
- Next by thread: athstats and flush stats
- Index(es):
Relevant Pages
|
|