see https://github.com/freebsd/drm-kmod/issues/216 FreeBSD t590 13.1-STABLE FreeBSD 13.1-STABLE #8 patch-bug-252288-c3f1ecb0d8: Fri Nov 18 22:35:23 CET 2022 root@t590:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 (commit d3b97a1ea) issue on all drm-510-kmod I can compile (5.10.113_5 and up) issue disappear if I put back old drm-54-kmod binary (5.4.191.g20220604). I can't compile this module anymore.
same issue that https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267878
- same symptom than 267421, but on kabylake - issue disappear if I rebuild from commit 4ad93073a17d579625217084b7831e5419c7758f as reported in 267878, and install last drm-510-kmod + gpu-firmware-intel-kmod-kabylake packages.