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

arch/mips/lantiq/xway/dma.c:293:1: error: no previous prototype for 'dma_init' [-Werror=missing-prototypes]
  293 | dma_init(void)
      | ^~~~~~~~

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

index 934ac72937e5fa6c80f7a94be75d483353549f2c..4693eba6c29665656fb5cf75b348fc6b63fdc09a 100644 (file)
@@ -289,7 +289,7 @@ static struct platform_driver dma_driver = {
        },
 };
 
-int __init
+static int __init
 dma_init(void)
 {
        return platform_driver_register(&dma_driver);