]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
MIPS: lantiq: xway: gptu: mark gptu_init() as static
authorShiji Yang <yangshiji66@outlook.com>
Wed, 18 Jun 2025 14:53:24 +0000 (22:53 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 3 Jul 2025 10:35:10 +0000 (12:35 +0200)
Fix the following missing-prototypes warning:

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

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

index 8d52001301deeb5a36e7953cbe794fc41a7129ec..484c9e3000c1ef35e107de5c447e1d9801cb1930 100644 (file)
@@ -194,7 +194,7 @@ static struct platform_driver dma_driver = {
        },
 };
 
-int __init gptu_init(void)
+static int __init gptu_init(void)
 {
        int ret = platform_driver_register(&dma_driver);