Including <linux/config.h> is wrong in user space, and likely unnecessary. Perhaps it is supposed to be wrapped by #ifdef __KERNEL__.
Created attachment 2805 [details] [review] patch This isn't a real patch, just one to show where the problem is.
This was fixed "upstream" in DRI CVS a while back I'm not sure if someone wants to apply it to 6.8.x branch, we are planning on importing a new drm anyway before 6.9/7.0 I'll try and get a stable one for around then not that it really matters as most people use the kernel...
appears to be fixed in xorg cvs: http://cvs.freedesktop.org/xorg/xc/extras/drm/shared/drm.h?r1=1.3&r2=1.4
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.