buildkernel failure [in_prot.c:61:2: error: use of undeclared identifier 'RA_LOCKED']
Date: Sat, 14 Mar 2026 02:54:32 UTC
Hi
I get this build failure with the attached kernel config.
/usr/src/sys/netinet/in_prot.c:61:2: error: call to undeclared function
'rw_assert'; ISO C99 and later do not support implicit function
declarations [-Werror,-Wimplicit-function-declaration]
61 | INP_LOCK_ASSERT(inp);
| ^
/usr/src/sys/netinet/in_pcb.h:538:30: note: expanded from macro
'INP_LOCK_ASSERT'
538 | #define INP_LOCK_ASSERT(inp) rw_assert(&(inp)->inp_lock,
RA_LOCKED)
| ^
/usr/src/sys/netinet/in_prot.c:61:2: error: use of undeclared identifier
'RA_LOCKED'
/usr/src/sys/netinet/in_pcb.h:538:58: note: expanded from macro
'INP_LOCK_ASSERT'
538 | #define INP_LOCK_ASSERT(inp) rw_assert(&(inp)->inp_lock,
RA_LOCKED)
| ^
2 errors generated.
*** Error code 1