git: 598b6d4a7c78 - main - i386 machine/cpu.h: include sys/systm.h for cpu_ticks()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 01 Sep 2022 12:10:51 UTC
The branch main has been updated by tijl:
URL: https://cgit.FreeBSD.org/src/commit/?id=598b6d4a7c789102caf7a7b36659465b67302045
commit 598b6d4a7c789102caf7a7b36659465b67302045
Author: Tijl Coosemans <tijl@FreeBSD.org>
AuthorDate: 2022-08-31 18:56:49 +0000
Commit: Tijl Coosemans <tijl@FreeBSD.org>
CommitDate: 2022-09-01 11:54:00 +0000
i386 machine/cpu.h: include sys/systm.h for cpu_ticks()
Fixes build of graphics/drm-510-kmod on i386.
---
sys/i386/include/cpu.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys/i386/include/cpu.h b/sys/i386/include/cpu.h
index df35c9e92cc7..50ff4961b388 100644
--- a/sys/i386/include/cpu.h
+++ b/sys/i386/include/cpu.h
@@ -41,6 +41,9 @@
/*
* Definitions unique to i386 cpu support.
*/
+#ifdef _KERNEL
+#include <sys/systm.h> /* For cpu_ticks(). */
+#endif
#include <machine/psl.h>
#include <machine/frame.h>
#include <machine/segments.h>