commit df114daef4c48548c3c2b86717612761185ae18f broke buildkernel (HWT)

From: A FreeBSD User <freebsd_at_walstatt-de.de>
Date: Thu, 03 Jul 2025 18:49:15 UTC
Hallo,

it seems commit  df114daef4c48548c3c2b86717612761185ae18f broke buildkernel, on all CURRENT
machines buildkernel is not possible due to


[...]
--- all_subdir_hwt ---
/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)
      |                                 ^
/usr/src/sys/sys/mutex.h:387:26: note: expanded from macro 'mtx_lock_spin'
  387 | #define mtx_lock_spin(m)        mtx_lock_spin_flags((m), 0)
      |                                 ^
/usr/src/sys/sys/mutex.h:456:2: note: expanded from macro 'mtx_lock_spin_flags'
  456 |         mtx_lock_spin_flags_((m), (opts), LOCK_FILE, LOCK_LINE)
      |         ^
/usr/src/sys/sys/mutex.h:433:2: note: expanded from macro 'mtx_lock_spin_flags_'
  433 |         __mtx_lock_spin((m), curthread, (opts), (file), (line))
      |         ^
/usr/src/sys/sys/mutex.h:259:2: note: expanded from macro '__mtx_lock_spin'
  259 |         spinlock_enter();                                               \
[...]

Fix in sight?

Kind regards,

oh


-- 

A FreeBSD user