Date: Thu, 1 May 2025 21:44:12 GMT From: Olivier Certner <olce@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: ad1f2e80c832 - stable/14 - kassert.h: Explicitly include <sys/types.h> on _KERNEL Message-ID: <202505012144.541LiCJW079133@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=ad1f2e80c8324716e80aa9d2955f42e68cc66308 commit ad1f2e80c8324716e80aa9d2955f42e68cc66308 Author: Olivier Certner <olce@FreeBSD.org> AuthorDate: 2025-05-01 21:37:41 +0000 Commit: Olivier Certner <olce@FreeBSD.org> CommitDate: 2025-05-01 21:43:59 +0000 kassert.h: Explicitly include <sys/types.h> on _KERNEL MFCing commit "kassert: Explicitly include <sys/_types.h>" (as 3772cb06205fd6bd) was not enough as, on stable/14 and contrary to main, <sys/kassert.h> also declares a 'panicked' variable as a 'bool' when _KERNEL is defined, so 'bool' needs to be defined in this case for <sys/kassert.h> to be includable standalone. This is a direct commit to stable/14. Fixes: 64ca7e040ace ("queue(3): Debug macros: Finer control knobs, userland support") Sponsored by: The FreeBSD Foundation --- sys/sys/kassert.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/sys/kassert.h b/sys/sys/kassert.h index ad8242245c37..36006be4e021 100644 --- a/sys/sys/kassert.h +++ b/sys/sys/kassert.h @@ -35,6 +35,8 @@ #include <sys/cdefs.h> #ifdef _KERNEL +#include <sys/types.h> /* for bool */ + extern const char *panicstr; /* panic message */ extern bool panicked; #define KERNEL_PANICKED() __predict_false(panicked)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202505012144.541LiCJW079133>