[PATCH 2/2] MIPS: pci-rt2880: make pcibios_init() static

From: Shiji Yang
Date: Wed Jun 18 2025 - 11:41:35 EST


From: Mieczyslaw Nalewaj <namiltd@xxxxxxxxx>

This function is only used in the current source file. Mark it as
static to fix the compilation error:

arch/mips/pci/pci-rt2880.c:267:12: error: no previous prototype for 'pcibios_init' [-Werror=missing-prototypes]
267 | int __init pcibios_init(void)
| ^~~~~~~~~~~~

Signed-off-by: Mieczyslaw Nalewaj <namiltd@xxxxxxxxx>
Signed-off-by: Shiji Yang <yangshiji66@xxxxxxxxxxx>
---
arch/mips/pci/pci-rt2880.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/pci/pci-rt2880.c b/arch/mips/pci/pci-rt2880.c
index 1cada09fa..006e2bbab 100644
--- a/arch/mips/pci/pci-rt2880.c
+++ b/arch/mips/pci/pci-rt2880.c
@@ -264,7 +264,7 @@ static struct platform_driver rt288x_pci_driver = {
},
};

-int __init pcibios_init(void)
+static int __init pcibios_init(void)
{
int ret = platform_driver_register(&rt288x_pci_driver);

--
2.50.0