The Savage kernel drivers uses mtrr_add and mtrr_del unconditionally. This fails at compile-time if OS_HAS_MTRR is false, for example because the use has configured the Linux kernel without CONFIG_MTRR.
Created attachment 4665 [details] [review] Guard use of mtrr_add/mtrr_del with #if __OS_HAS_MTRR Not tested, but should be trivial enough to not break anything.
I don't understand how this could lead to an error on the user's system. drm_os_linux defines mtrr_add and mtrr_del as empty stubs of __OS_HAS_MTRR is false. Aha! Now I see it. The number of parameters of those stubs is wrong.
Created attachment 4666 [details] [review] drmP.h fix for !__OS_HAS_MTRR Adds drm_mtrr_add and drm_mtrr_del stub functions to linux-core/drmP.h for the case that __OS_HAS_MTRR is false.
checked in.
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.