svn commit: r347190 - head/sys/compat/linuxkpi/common/include/linux

Hans Petter Selasky hselasky at FreeBSD.org
Mon May 6 16:22:46 UTC 2019


Author: hselasky
Date: Mon May  6 16:22:45 2019
New Revision: 347190
URL: https://svnweb.freebsd.org/changeset/base/347190

Log:
  Use PCIV_INVALID in pci_channel_offline() in the LinuxKPI.
  
  Build tested drm-current-kmod prior to commit.
  
  MFC after:		1 week
  Submitted by:		slavash@
  Sponsored by:		Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/linux/pci.h

Modified: head/sys/compat/linuxkpi/common/include/linux/pci.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/pci.h	Mon May  6 16:17:55 2019	(r347189)
+++ head/sys/compat/linuxkpi/common/include/linux/pci.h	Mon May  6 16:22:45 2019	(r347190)
@@ -614,7 +614,7 @@ static inline int
 pci_channel_offline(struct pci_dev *pdev)
 {
 
-	return (pci_get_vendor(pdev->dev.bsddev) == 0xffff);
+	return (pci_get_vendor(pdev->dev.bsddev) == PCIV_INVALID);
 }
 
 static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn)


More information about the svn-src-head mailing list