Skip to content

Commit aa762ff

Browse files
author
Myron Stowe
committed
PCI: Remove unused pci_printk()
JIRA: https://issues.redhat.com/browse/RHEL-107597 Upstream Status: 1c8a0ed commit 1c8a0ed Author: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Date: Mon Apr 7 13:12:14 2025 +0300 PCI: Remove unused pci_printk() include/linux/pci.h provides low-level pci_printk() interface that is not used since the commits fab874e ("PCI/AER: Descope pci_printk() to aer_printk()") and 588021b ("PCI: shpchp: Remove 'shpchp_debug' module parameter"). PCI logging should not use pci_printk() but pci_*() wrappers that follow the usual logging wrapper patterns. Remove pci_printk(). Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Link: https://lore.kernel.org/r/20250407101215.1376-1-ilpo.jarvinen@linux.intel.com Signed-off-by: Myron Stowe <mstowe@redhat.com>
1 parent 7888cc3 commit aa762ff

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

include/linux/pci.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2746,9 +2746,6 @@ void pci_uevent_ers(struct pci_dev *pdev, enum pci_ers_result err_type);
27462746

27472747
#include <linux/dma-mapping.h>
27482748

2749-
#define pci_printk(level, pdev, fmt, arg...) \
2750-
dev_printk(level, &(pdev)->dev, fmt, ##arg)
2751-
27522749
#define pci_emerg(pdev, fmt, arg...) dev_emerg(&(pdev)->dev, fmt, ##arg)
27532750
#define pci_alert(pdev, fmt, arg...) dev_alert(&(pdev)->dev, fmt, ##arg)
27542751
#define pci_crit(pdev, fmt, arg...) dev_crit(&(pdev)->dev, fmt, ##arg)

0 commit comments

Comments
 (0)