]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
MIPS: pci: lantiq: marks pcibios_init() as static
authorShiji Yang <yangshiji66@outlook.com>
Wed, 18 Jun 2025 14:53:19 +0000 (22:53 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 2 Jul 2025 11:36:41 +0000 (13:36 +0200)
Fix the following missing-prototypes build warning:

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

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/pci/pci-lantiq.c

index 68a8cefed420bf41ce99fabffc424bce8eb101e7..0e85839b822570038858a8d98b70784c9e10498d 100644 (file)
@@ -234,7 +234,7 @@ static struct platform_driver ltq_pci_driver = {
        },
 };
 
-int __init pcibios_init(void)
+static int __init pcibios_init(void)
 {
        int ret = platform_driver_register(&ltq_pci_driver);
        if (ret)