mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
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>
This commit is contained in:
parent
42e2acde12
commit
c36c5ffd51
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user