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)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to