From 742e931842d7ece0522c57d8505ffc124ba30d54 Mon Sep 17 00:00:00 2001 From: bde Date: Wed, 4 Feb 2004 14:18:21 +0000 Subject: Include before instead of depending on namespace pollution in other headers. is now the only prerequisite for . Fixed some style bugs: - removed bogus LOCORE ifdef. Including this C header in assembler sources is just nonsense. - removed unused include of . It finished rotting when the mutex in struct sx became indirect in rev.1.15. - removed most comments on #else and #endif's and cleaned up the others. All were misindented... --- sys/sys/sx.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'sys/sys') diff --git a/sys/sys/sx.h b/sys/sys/sx.h index 3dc9be0..0612b7b 100644 --- a/sys/sys/sx.h +++ b/sys/sys/sx.h @@ -30,9 +30,8 @@ #ifndef _SYS_SX_H_ #define _SYS_SX_H_ -#ifndef LOCORE +#include #include -#include #include /* XXX */ struct sx { @@ -89,14 +88,14 @@ struct sx_args { #define SX_SLOCKED LA_SLOCKED #define SX_XLOCKED LA_XLOCKED #define SX_UNLOCKED LA_UNLOCKED -#endif /* INVARIANTS || INVARIANT_SUPPORT */ +#endif #ifdef INVARIANTS #define sx_assert(sx, what) _sx_assert((sx), (what), LOCK_FILE, LOCK_LINE) -#else /* INVARIANTS */ +#else #define sx_assert(sx, what) -#endif /* INVARIANTS */ +#endif + +#endif /* _KERNEL */ -#endif /* _KERNEL */ -#endif /* !LOCORE */ -#endif /* _SYS_SX_H_ */ +#endif /* !_SYS_SX_H_ */ -- cgit v1.1