aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederick Lawler <fred@fredlawl.com>2019-05-07 19:24:53 -0400
committerBjorn Helgaas <bhelgaas@google.com>2019-05-09 17:45:20 -0400
commit742ee16bc31f42b034a9b3b01731fd6dc20d0b19 (patch)
treeedd9fca4eef793059a596c85b942b2d4a4074f15
parent94dbc9562edc745d0549f1744ca1bd75e644473e (diff)
PCI: pciehp: Remove unused dbg/err/info/warn() wrappers
Replace the last uses of dbg() with the equivalent pr_debug(), then remove unused dbg(), err(), info(), and warn() wrappers. Link: https://lore.kernel.org/lkml/20190509141456.223614-9-helgaas@kernel.org Signed-off-by: Frederick Lawler <fred@fredlawl.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Keith Busch <keith.busch@intel.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
-rw-r--r--drivers/pci/hotplug/pciehp.h9
-rw-r--r--drivers/pci/hotplug/pciehp_core.c4
-rw-r--r--drivers/pci/hotplug/pciehp_hpc.c2
3 files changed, 3 insertions, 12 deletions
diff --git a/drivers/pci/hotplug/pciehp.h b/drivers/pci/hotplug/pciehp.h
index 2f0295b48d5d..c206fd9cd3d7 100644
--- a/drivers/pci/hotplug/pciehp.h
+++ b/drivers/pci/hotplug/pciehp.h
@@ -34,15 +34,6 @@ extern int pciehp_poll_time;
34 * Set CONFIG_DYNAMIC_DEBUG=y and boot with 'dyndbg="file pciehp* +p"' to 34 * Set CONFIG_DYNAMIC_DEBUG=y and boot with 'dyndbg="file pciehp* +p"' to
35 * enable debug messages. 35 * enable debug messages.
36 */ 36 */
37#define dbg(format, arg...) \
38 pr_debug(format, ## arg);
39#define err(format, arg...) \
40 pr_err(format, ## arg)
41#define info(format, arg...) \
42 pr_info(format, ## arg)
43#define warn(format, arg...) \
44 pr_warn(format, ## arg)
45
46#define ctrl_dbg(ctrl, format, arg...) \ 37#define ctrl_dbg(ctrl, format, arg...) \
47 pci_dbg(ctrl->pcie->port, format, ## arg) 38 pci_dbg(ctrl->pcie->port, format, ## arg)
48#define ctrl_err(ctrl, format, arg...) \ 39#define ctrl_err(ctrl, format, arg...) \
diff --git a/drivers/pci/hotplug/pciehp_core.c b/drivers/pci/hotplug/pciehp_core.c
index b85b22880c50..1643e9aa261c 100644
--- a/drivers/pci/hotplug/pciehp_core.c
+++ b/drivers/pci/hotplug/pciehp_core.c
@@ -328,9 +328,9 @@ int __init pcie_hp_init(void)
328 int retval = 0; 328 int retval = 0;
329 329
330 retval = pcie_port_service_register(&hpdriver_portdrv); 330 retval = pcie_port_service_register(&hpdriver_portdrv);
331 dbg("pcie_port_service_register = %d\n", retval); 331 pr_debug("pcie_port_service_register = %d\n", retval);
332 if (retval) 332 if (retval)
333 dbg("Failure to register service\n"); 333 pr_debug("Failure to register service\n");
334 334
335 return retval; 335 return retval;
336} 336}
diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c
index 913c7e66504f..9ce93b1034bd 100644
--- a/drivers/pci/hotplug/pciehp_hpc.c
+++ b/drivers/pci/hotplug/pciehp_hpc.c
@@ -235,7 +235,7 @@ static bool pci_bus_check_dev(struct pci_bus *bus, int devfn)
235 } while (delay > 0); 235 } while (delay > 0);
236 236
237 if (count > 1) 237 if (count > 1)
238 dbg("pci %04x:%02x:%02x.%d id reading try %d times with interval %d ms to get %08x\n", 238 pr_debug("pci %04x:%02x:%02x.%d id reading try %d times with interval %d ms to get %08x\n",
239 pci_domain_nr(bus), bus->number, PCI_SLOT(devfn), 239 pci_domain_nr(bus), bus->number, PCI_SLOT(devfn),
240 PCI_FUNC(devfn), count, step, l); 240 PCI_FUNC(devfn), count, step, l);
241 241