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

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

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

index 4a808f8c5bebf58189696250e429c7a4a5b87259..b79c462fd48a51973ca2d1c02c9cd29318a158ec 100644 (file)
@@ -46,7 +46,7 @@ static struct platform_driver dcdc_driver = {
        },
 };
 
-int __init dcdc_init(void)
+static int __init dcdc_init(void)
 {
        int ret = platform_driver_register(&dcdc_driver);