svn commit: r359165 - in head/sys/compat/linuxkpi/common: include/linux src
Warner Losh
imp at FreeBSD.org
Fri Mar 20 15:16:06 UTC 2020
Author: imp
Date: Fri Mar 20 15:07:25 2020
New Revision: 359165
URL: https://svnweb.freebsd.org/changeset/base/359165
Log:
Implement a workaround for kms-drm modules
pci_iov_if.h was added to pci.h, but none of the kms-drm branches have
that. Rather than play whack a mole with the branches, move its inclusion to
linux_pci.c which is the only part of the code that needs it now.
Longer term, other solutions will be needed, but this gives us time to get those
deployed on all the supported versions.
Modified:
head/sys/compat/linuxkpi/common/include/linux/pci.h
head/sys/compat/linuxkpi/common/src/linux_pci.c
Modified: head/sys/compat/linuxkpi/common/include/linux/pci.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/pci.h Fri Mar 20 15:07:21 2020 (r359164)
+++ head/sys/compat/linuxkpi/common/include/linux/pci.h Fri Mar 20 15:07:25 2020 (r359165)
@@ -40,10 +40,10 @@
#include <sys/nv.h>
#include <sys/pciio.h>
#include <sys/rman.h>
+#include <sys/bus.h>
#include <dev/pci/pcivar.h>
#include <dev/pci/pcireg.h>
#include <dev/pci/pci_private.h>
-#include <dev/pci/pci_iov.h>
#include <machine/resource.h>
Modified: head/sys/compat/linuxkpi/common/src/linux_pci.c
==============================================================================
--- head/sys/compat/linuxkpi/common/src/linux_pci.c Fri Mar 20 15:07:21 2020 (r359164)
+++ head/sys/compat/linuxkpi/common/src/linux_pci.c Fri Mar 20 15:07:25 2020 (r359165)
@@ -38,6 +38,7 @@ __FBSDID("$FreeBSD$");
#include <sys/fcntl.h>
#include <sys/file.h>
#include <sys/filio.h>
+#include <sys/pciio.h>
#include <sys/pctrie.h>
#include <sys/rwlock.h>
@@ -45,6 +46,10 @@ __FBSDID("$FreeBSD$");
#include <vm/pmap.h>
#include <machine/stdarg.h>
+
+#include <dev/pci/pcivar.h>
+#include <dev/pci/pci_private.h>
+#include <dev/pci/pci_iov.h>
#include <linux/kobject.h>
#include <linux/device.h>
More information about the svn-src-head
mailing list