powerpc/eeh: Declare pci_ers_result_name() as static
authorBreno Leitao <leitao@debian.org>
Mon, 22 Oct 2018 14:54:13 +0000 (11:54 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 25 Nov 2018 06:11:21 +0000 (17:11 +1100)
Function pci_ers_result_name() is a static function, although not declared
as such. This was detected by sparse in the following warning

arch/powerpc/kernel/eeh_driver.c:63:12: warning: symbol 'pci_ers_result_name' was not declared. Should it be static?

This patch simply declares the function a static.

Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh_driver.c

index 9446248..99eab7b 100644 (file)
@@ -60,7 +60,7 @@ static int eeh_result_priority(enum pci_ers_result result)
        }
 };
 
-const char *pci_ers_result_name(enum pci_ers_result result)
+static const char *pci_ers_result_name(enum pci_ers_result result)
 {
        switch (result) {
        case PCI_ERS_RESULT_NONE: