git: b3b4763bc1ed - main - sys/exterrvar.h: forward declare struct thread
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 15 Jul 2026 09:32:45 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/src/commit/?id=b3b4763bc1ed328013498a958f0af53ceca2d495
commit b3b4763bc1ed328013498a958f0af53ceca2d495
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2026-07-15 08:44:29 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2026-07-15 09:32:16 +0000
sys/exterrvar.h: forward declare struct thread
Remove dependency on sys/proc.h.
Reviewed by: imp
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D58235
---
sys/sys/exterrvar.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/sys/exterrvar.h b/sys/sys/exterrvar.h
index 0a34280ff711..a4f6d5313efc 100644
--- a/sys/sys/exterrvar.h
+++ b/sys/sys/exterrvar.h
@@ -27,6 +27,8 @@
#ifdef _KERNEL
+struct thread;
+
#ifndef EXTERR_CATEGORY
#error "Specify error category before including sys/exterrvar.h"
#endif