diff mbox series

[2/8] PCI/AER: Update functions names in the kernel-doc

Message ID 20210311001724.423356-2-kw@linux.com (mailing list archive)
State Accepted
Delegated to: Bjorn Helgaas
Headers show
Series [1/8] PCI: endpoint: Fix kernel-doc formatting and add missing documentation | expand

Commit Message

Krzysztof Wilczyński March 11, 2021, 12:17 a.m. UTC
Update function names in the kernel-doc to match function prototypes
for functions enable_ecrc_checking(), disable_ecrc_checking() and
pcie_aer_init(), and resolve build time warnings related to kernel-doc:

 drivers/pci/pcie/aer.c:138: warning: expecting prototype for
 enable_ercr_checking(). Prototype was for enable_ecrc_checking()
 instead

 drivers/pci/pcie/aer.c:1450: warning: expecting prototype for
 aer_service_init(). Prototype was for pcie_aer_init() instead

 drivers/pci/pcie/aer.c:162: warning: expecting prototype for
 disable_ercr_checking(). Prototype was for disable_ecrc_checking()
 instead

No change to functionality intended.

Signed-off-by: Krzysztof Wilczyński <kw@linux.com>
---
 drivers/pci/pcie/aer.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c
index ba22388342d1..ec943cee5ecc 100644
--- a/drivers/pci/pcie/aer.c
+++ b/drivers/pci/pcie/aer.c
@@ -129,7 +129,7 @@  static const char * const ecrc_policy_str[] = {
 };
 
 /**
- * enable_ercr_checking - enable PCIe ECRC checking for a device
+ * enable_ecrc_checking - enable PCIe ECRC checking for a device
  * @dev: the PCI device
  *
  * Returns 0 on success, or negative on failure.
@@ -153,7 +153,7 @@  static int enable_ecrc_checking(struct pci_dev *dev)
 }
 
 /**
- * disable_ercr_checking - disables PCIe ECRC checking for a device
+ * disable_ecrc_checking - disables PCIe ECRC checking for a device
  * @dev: the PCI device
  *
  * Returns 0 on success, or negative on failure.
@@ -1442,7 +1442,7 @@  static struct pcie_port_service_driver aerdriver = {
 };
 
 /**
- * aer_service_init - register AER root service driver
+ * pcie_aer_init - register AER root service driver
  *
  * Invoked when AER root service driver is loaded.
  */