[PATCH v6 05/16] PCI/AER: Rename aer_print_port_info() to aer_print_source()

Bjorn Helgaas
2025-05-19T21:36:58Z

From: Jon Pan-Doh <pandoh@google.com>

Rename aer_print_port_info() to aer_print_source() to be more descriptive.
This logs the Error Source ID logged by a Root Port or Root Complex Event
Collector when it receives an ERR_COR, ERR_NONFATAL, or ERR_FATAL Message.

[bhelgaas: aer_print_rp_info() -> aer_print_source()]
Link: https://lore.kernel.org/r/20250321015806.954866-5-pandoh@google.com
Signed-off-by: Jon Pan-Doh <pandoh@google.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
drivers/pci/pcie/aer.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c
index dc8a50e0a2b7..eb42d50b2def 100644
--- a/drivers/pci/pcie/aer.c
+++ b/drivers/pci/pcie/aer.c
@@ -733,8 +733,8 @@ void aer_print_error(struct pci_dev *dev, struct aer_err_info *info)
info->severity, info->tlp_header_valid, &info->tlp);
}

-static void aer_print_port_info(struct pci_dev *dev, struct aer_err_info *info,
- const char *details)
+static void aer_print_source(struct pci_dev *dev, struct aer_err_info *info,
+ const char *details)
{
u16 source = info->id;

@@ -932,7 +932,7 @@ static bool find_source_device(struct pci_dev *parent,
* RCEC that received an ERR_* Message.
*/
if (!e_info->error_dev_num) {
- aer_print_port_info(parent, e_info, " (no details found)");
+ aer_print_source(parent, e_info, " (no details found)");
return false;
}
return true;
@@ -1299,7 +1299,7 @@ static void aer_isr_one_error(struct aer_rpc *rpc,
e_info.multi_error_valid = 0;

if (find_source_device(pdev, &e_info)) {
- aer_print_port_info(pdev, &e_info, "");
+ aer_print_source(pdev, &e_info, "");
aer_process_err_devices(&e_info);
}
}
@@ -1318,7 +1318,7 @@ static void aer_isr_one_error(struct aer_rpc *rpc,
e_info.multi_error_valid = 0;

if (find_source_device(pdev, &e_info)) {
- aer_print_port_info(pdev, &e_info, "");
+ aer_print_source(pdev, &e_info, "");
aer_process_err_devices(&e_info);
}
}
--
2.43.0