Re: git: df114daef4c4 - main - Import the Hardware Trace (HWT) framework.

From: Ruslan Bukin <br_at_freebsd.org>
Date: Thu, 03 Jul 2025 20:50:10 UTC
On Thu, Jul 03, 2025 at 06:19:16PM +0200, A FreeBSD User wrote:
> 
> The commit breaks buildkernel:
> 
> [...]
> /usr/src/sys/dev/hwt/hwt_contexthash.c:82:2: error: call to undeclared function
> 'spinlock_enter'; ISO C99 and later do not support implicit function declarations
> [-Werror,-Wimplicit-function-declaration] 82 |         HWT_CTXHASH_LOCK(); |         ^
> /usr/src/sys/dev/hwt/hwt_contexthash.h:39:28: note: expanded from macro 'HWT_CTXHASH_LOCK'
>    39 | #define HWT_CTXHASH_LOCK()      mtx_lock_spin(&hwt_contexthash_mtx)
> 

Dear FreeBSD user, thanks for your report. This should now be fixed. Could you confirm it builds?

Roseland