Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Sep 2024 00:22:52 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 01e1131e4a20 - main - LinuxKPI: add pci_err()
Message-ID:  <202409130022.48D0Mq9I055757@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=01e1131e4a20ea377d580ecce210aa86726e71c6

commit 01e1131e4a20ea377d580ecce210aa86726e71c6
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2024-09-12 20:40:59 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2024-09-13 00:20:53 +0000

    LinuxKPI: add pci_err()
    
    Add pci_err() as a wrapper to dev_err() as needed by an updated driver.
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days
    Reviewed by:    emaste
    Differential Revision: https://reviews.freebsd.org/D46660
---
 sys/compat/linuxkpi/common/include/linux/pci.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h
index 36b970154ad2..a2de534fcb60 100644
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -367,6 +367,9 @@ struct msi_desc *lkpi_pci_msi_desc_alloc(int);
 struct device *lkpi_pci_find_irq_dev(unsigned int irq);
 int _lkpi_pci_enable_msi_range(struct pci_dev *pdev, int minvec, int maxvec);
 
+#define	pci_err(pdev, fmt, ...)						\
+    dev_err(&(pdev)->dev, fmt, __VA_ARGS__)
+
 static inline bool
 dev_is_pci(struct device *dev)
 {



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