git: 286250daf5a3 - stable/14 - LinuxKPI: add pci_err()

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Sat, 28 Sep 2024 10:38:25 UTC
The branch stable/14 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=286250daf5a335f111a897333888f68f4f6220e7

commit 286250daf5a335f111a897333888f68f4f6220e7
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-28 10:35:14 +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
    Reviewed by:    emaste
    Differential Revision: https://reviews.freebsd.org/D46660
    
    (cherry picked from commit 01e1131e4a20ea377d580ecce210aa86726e71c6)
---
 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 73882b312db5..aa756c6e5b09 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)
 {