Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Nov 2022 20:05:06 GMT
From:      =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= <dumbbell@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 86a1c5d12945 - main - linuxkpi: Define `pci_reset_function()` in <linux/pci.h>
Message-ID:  <202211112005.2ABK56Q1033808@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dumbbell (ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=86a1c5d1294579d6787811a5d9cde2aad2567cd9

commit 86a1c5d1294579d6787811a5d9cde2aad2567cd9
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2022-11-11 20:00:36 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2022-11-11 20:00:36 +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
---
 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 775bac72a145..72fe345a72a6 100644
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -938,6 +938,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?202211112005.2ABK56Q1033808>