From 2f98724d1e603268360d704b3c8823b93d5fecb4 Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Tue, 20 Jul 2010 22:14:22 +0200 Subject: Fix long standing MTRR bug. Add an include that makes the file common_vgaarb.c see the same struct pci_system as the file linux_sysfs.c. Without this fix, on a MTRR system, the vgaarb_fd member would overwrite the mtrr_fd member and cause the MTRR_IOC_ADD_ENTRY call to be issued to the incorrect device causing the infamous "Inappropriate ioctl for device (25)" error. This error would cause MTRR setup to fail on all systems relying on it and is severe enough to warrant a new release. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie --- src/common_vgaarb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common_vgaarb.c b/src/common_vgaarb.c index c94b362..86eceb5 100644 --- a/src/common_vgaarb.c +++ b/src/common_vgaarb.c @@ -33,6 +33,7 @@ #include #include +#include "config.h" #include "pciaccess.h" #include "pciaccess_private.h" -- cgit v1.2.3