Thread (19 messages) 19 messages, 4 authors, 2021-08-03
STALE1787d

[RFC PATCH] PCI: pcie_has_flr() can be static

From: kernel test robot <hidden>
Date: 2021-08-01 17:05:55
Also in: lkml, oe-kbuild-all
Subsystem: pci subsystem, the rest · Maintainers: Bjorn Helgaas, Linus Torvalds

drivers/pci/pci.c:4636:6: warning: symbol 'pcie_has_flr' was not declared. Should it be static?

Reported-by: kernel test robot <redacted>
Signed-off-by: kernel test robot <redacted>
---
 pci.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 338c98bb60968..dba075bd11114 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -4633,7 +4633,7 @@ EXPORT_SYMBOL(pci_wait_for_pending_transaction);
  * Returns true if the device advertises support for PCIe function level
  * resets.
  */
-bool pcie_has_flr(struct pci_dev *dev)
+static bool pcie_has_flr(struct pci_dev *dev)
 {
 	if (dev->dev_flags & PCI_DEV_FLAGS_NO_FLR_RESET)
 		return false;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help