git: b6a61d6836d9 - main - linuxkpi math: fix kassert in math64.h
Date: Fri, 18 Aug 2023 05:33:13 UTC
The branch main has been updated by dougm:
URL: https://cgit.FreeBSD.org/src/commit/?id=b6a61d6836d90ff2756d804eb981a02b0828f496
commit b6a61d6836d90ff2756d804eb981a02b0828f496
Author: Doug Moore <dougm@FreeBSD.org>
AuthorDate: 2023-08-18 05:31:03 +0000
Commit: Doug Moore <dougm@FreeBSD.org>
CommitDate: 2023-08-18 05:31:03 +0000
linuxkpi math: fix kassert in math64.h
Include <sys/systm.h> in math64.h, so that KASSERT and bool are
defined, to allow compilation to succeed after
b80ea452375f52a3ab7d82a9aef10da0d89985d9 and dabbbebcb0f5...
---
sys/compat/linuxkpi/common/include/linux/math64.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/compat/linuxkpi/common/include/linux/math64.h b/sys/compat/linuxkpi/common/include/linux/math64.h
index df629a10af8a..cae5e30b08df 100644
--- a/sys/compat/linuxkpi/common/include/linux/math64.h
+++ b/sys/compat/linuxkpi/common/include/linux/math64.h
@@ -29,6 +29,7 @@
#define _LINUXKPI_LINUX_MATH64_H
#include <sys/stdint.h>
+#include <sys/systm.h>
#define do_div(n, base) ({ \
uint32_t __base = (base); \