Page MenuHomeFreeBSD

D34036.1794728808.diff
No OneTemporary

Authored By
Unknown
Size
968 B
Referenced Files
None
Subscribers
None

D34036.1794728808.diff

Index: sys/sys/systm.h
===================================================================
--- sys/sys/systm.h
+++ sys/sys/systm.h
@@ -49,7 +49,7 @@
__NULLABILITY_PRAGMA_PUSH
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined (_KERNEL_UT)
extern int cold; /* nonzero if we are doing a cold boot */
extern int suspend_blocked; /* block suspend due to pending shutdown */
extern int rebooting; /* kern_reboot() has been called. */
@@ -173,7 +173,7 @@
#define __read_frequently __section(".data.read_frequently")
#define __exclusive_cache_line __aligned(CACHE_LINE_SIZE) \
__section(".data.exclusive_cache_line")
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_KERNEL_UT)
#include <sys/param.h> /* MAXCPU */
#include <sys/pcpu.h> /* curthread */
#include <sys/kpilite.h>
@@ -665,7 +665,7 @@
#define __diagused __unused
#endif
-#endif /* _KERNEL */
+#endif /* _KERNEL || _KERNEL_UT */
__NULLABILITY_PRAGMA_POP
#endif /* !_SYS_SYSTM_H_ */

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 15, 7:46 AM (2 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41740177
Default Alt Text
D34036.1794728808.diff (968 B)

Event Timeline