Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jan 2023 08:54:08 GMT
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 577e5458c520 - stable/13 - linuxkpi: Define `pci_reset_function()` in <linux/pci.h>
Message-ID:  <202301240854.30O8s8ND036099@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=577e5458c520d606216bdaf530d750676635f026

commit 577e5458c520d606216bdaf530d750676635f026
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2022-11-11 20:00:36 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2023-01-24 09:08:01 +0000

    linuxkpi: Define `pci_reset_function()` in <linux/pci.h>
    
    Currently, it always returns an error on FreeBSD.
    
    Reviewed by:    bz manu
    Approved by:    bz manu
    Differential Revision:  https://reviews.freebsd.org/D37366
    
    (cherry picked from commit 86a1c5d1294579d6787811a5d9cde2aad2567cd9)
---
 sys/compat/linuxkpi/common/include/linux/pci.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h
index de041fa966ea..a271bc6a1360 100644
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -965,6 +965,13 @@ lkpi_pci_restore_state(struct pci_dev *pdev)
 #define pci_save_state(dev)	lkpi_pci_save_state(dev)
 #define pci_restore_state(dev)	lkpi_pci_restore_state(dev)
 
+static inline int
+pci_reset_function(struct pci_dev *pdev)
+{
+
+	return (-ENOSYS);
+}
+
 #define DEFINE_PCI_DEVICE_TABLE(_table) \
 	const struct pci_device_id _table[] __devinitdata
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301240854.30O8s8ND036099>