svn commit: r347709 - stable/12/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Thu May 16 15:39:08 UTC 2019
Author: hselasky
Date: Thu May 16 15:39:07 2019
New Revision: 347709
URL: https://svnweb.freebsd.org/changeset/base/347709
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/12/sys/compat/linuxkpi/common/include/linux/pci.h
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/compat/linuxkpi/common/include/linux/pci.h
==============================================================================
--- stable/12/sys/compat/linuxkpi/common/include/linux/pci.h Thu May 16 15:37:49 2019 (r347708)
+++ stable/12/sys/compat/linuxkpi/common/include/linux/pci.h Thu May 16 15:39:07 2019 (r347709)
@@ -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