svn commit: r347794 - stable/11/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Thu May 16 17:04:16 UTC 2019
Author: hselasky
Date: Thu May 16 17:04:15 2019
New Revision: 347794
URL: https://svnweb.freebsd.org/changeset/base/347794
Log:
MFC r347190:
Use PCIV_INVALID in pci_channel_offline() in the LinuxKPI.
Build tested drm-current-kmod prior to commit.
Submitted by: slavash@
Sponsored by: Mellanox Technologies
Modified:
stable/11/sys/compat/linuxkpi/common/include/linux/pci.h
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/compat/linuxkpi/common/include/linux/pci.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/pci.h Thu May 16 17:03:16 2019 (r347793)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/pci.h Thu May 16 17:04:15 2019 (r347794)
@@ -603,7 +603,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-all
mailing list