Line 256 in /usr/home/simon/drm-kmod/drivers/gpu/drm/drm_pci.c the function call expects two arguments but gets only one from the code. A macro by the same name is defined earlier with two arguments so that is what is expected.
Please describe in detail what you are trying to do, and how you got to this point starting at the beginning with the source code acquisition.
I have not tried this in person, and I am not going to try it either. This is just a guess on how it could be done.
Compiling into the kernel if the source is in the tree
1. Using a FreeBSD 14.4 machine, acquire the source code for FreeBSD 14.4 kernel.
2. Compile an i386 14.4-RELEASE kernel on that machine to prove that the compilation completes successfully.
3. Acquire the source code for the FreeBSD 13.5 kernel.
4. Move the DRM KMOD source code and Linux firmware source code in the 14.4 tree to outside the 14.4 tree.
5. Copy the source code for the DRM 5.10 KMOD and Linux firmware from the 13.5 tree to the 14.4 tree
6. Edit the Makefile to refer to DRM 5.10
7. Recompile the 14.4 kernel, with the DRM 5.10 KMOD amd Linux firmware from 13.5
Another way of acquiring the DRM 5.10 code would be using the github repo branch 5.10-lts
drm driver for FreeBSD. Contribute to freebsd/drm-kmod development by creating an account on GitHub.
github.com
The FreeBSD github repo for Linux firmware only has one branch, but it looks like it has old versions in it.
KMS firmware components for graphics/kms-firmware port - freebsd/drm-kmod-firmware
github.com
Building a package
On a Poudriere build machine running FreeBSD 14.4, configure it to build i386 packages in 14.4 and 13.5 jails.
Build drm-510-kmod on Poudriere for 13.5, this gets the code on your Poudriere host.
Check/Edit the makefile for drm510-kmod to make sure it doesn't have any restrictions for i386
Then run Poudriere to build drm-510-kmod for 14.4
Compile from port
RTFM
FreeBSD provides two complementary technologies for installing third-party software: the FreeBSD Ports Collection, for installing from source, and packages, for installing from pre-built binaries
docs.freebsd.org