git: 1e4b7ab136b4 - main - tslog.h: Wrap in #ifdef _KERNEL
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 05 Jun 2023 05:50:07 UTC
The branch main has been updated by cperciva:
URL: https://cgit.FreeBSD.org/src/commit/?id=1e4b7ab136b434dcb296833e509f87c95ac868bc
commit 1e4b7ab136b434dcb296833e509f87c95ac868bc
Author: Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2023-06-04 22:59:10 +0000
Commit: Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2023-06-05 05:49:38 +0000
tslog.h: Wrap in #ifdef _KERNEL
This is not intended to be used from outside of the kernel; in
particular, the boot loader has its own version of tslog.
---
sys/sys/tslog.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/sys/tslog.h b/sys/sys/tslog.h
index af3c0931cac8..dcbfd266c5c2 100644
--- a/sys/sys/tslog.h
+++ b/sys/sys/tslog.h
@@ -29,6 +29,7 @@
#ifndef _TSLOG_H_
#define _TSLOG_H_
+#ifdef _KERNEL
#ifdef TSLOG
#include <sys/_types.h>
#include <sys/pcpu.h>
@@ -66,4 +67,5 @@ void tslog_user(pid_t, pid_t, const char *, const char *);
#define TSRAW_USER(a, b, c, d) /* Timestamp logging disabled */
#endif
+#endif /* _KERNEL */
#endif /* _TSLOG_H_ */