git: f53b28c6dffe - main - Fix i386 MINIMAL build

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Fri, 14 Jul 2023 07:47:01 UTC
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=f53b28c6dffebbd554d5c07b3abc03b83a8c89ad

commit f53b28c6dffebbd554d5c07b3abc03b83a8c89ad
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2023-07-13 18:31:06 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2023-07-14 07:18:44 +0000

    Fix i386 MINIMAL build
    
    Include systm.h in i386's counter.h, so it can use critical_*().
    
    In file included from /usr/src/sys/netinet6/ip6_var.h:250:
    In file included from /usr/src/sys/sys/counter.h:37:
    ./machine/counter.h:191:3: error: call to undeclared function 'critical_enter'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
                    critical_enter();
                    ^
    ./machine/counter.h:193:3: error: call to undeclared function 'critical_exit'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
                    critical_exit();
                    ^
---
 sys/i386/include/counter.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/i386/include/counter.h b/sys/i386/include/counter.h
index 1b3fc4c638e7..2a54e2b725e0 100644
--- a/sys/i386/include/counter.h
+++ b/sys/i386/include/counter.h
@@ -35,6 +35,7 @@
 #ifdef INVARIANTS
 #include <sys/proc.h>
 #endif
+#include <sys/systm.h>
 #include <machine/md_var.h>
 #include <machine/specialreg.h>