r328351 seems breaks the architectures where size_t is not unsigned long:
https://ci.freebsd.org/job/FreeBSD-head-mips-build/95/console
00:06:35.591 --- kern_malloc.o --- 00:06:35.591 cc1: warnings being treated as errors 00:06:35.591 /usr/src/sys/kern/kern_malloc.c: In function 'malloc': 00:06:35.591 /usr/src/sys/kern/kern_malloc.c:532: warning: passing argument 2 of 'malloc_dbg' from incompatible pointer type 00:06:35.592 /usr/src/sys/kern/kern_malloc.c: In function 'malloc_domain': 00:06:35.592 /usr/src/sys/kern/kern_malloc.c:582: warning: passing argument 2 of 'malloc_dbg' from incompatible pointer type
BTW, I see more places in this files use unsigned long as size or alignment, should they also be changed?