summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/eeh_driver.c
diff options
context:
space:
mode:
authorBreno Leitao <leitao@debian.org>2018-10-22 16:54:13 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2018-11-25 07:11:21 +0100
commitc36c5ffd5173bad377749c136718f3c77d896691 (patch)
treee2e6d19737061ba714ed7e39673f3524eb9b8abf /arch/powerpc/kernel/eeh_driver.c
parentpowerpc/64s: Include cpu header (diff)
downloadlinux-c36c5ffd5173bad377749c136718f3c77d896691.tar.xz
linux-c36c5ffd5173bad377749c136718f3c77d896691.zip
powerpc/eeh: Declare pci_ers_result_name() as static
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>
Diffstat (limited to 'arch/powerpc/kernel/eeh_driver.c')
-rw-r--r--arch/powerpc/kernel/eeh_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/eeh_driver.c b/arch/powerpc/kernel/eeh_driver.c
index 9446248eb6b8..99eab7bc7edc 100644
--- a/arch/powerpc/kernel/eeh_driver.c
+++ b/arch/powerpc/kernel/eeh_driver.c
@@ -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: