]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
MIPS: lantiq: xway: add prototype for ltq_get_cp1_base()
authorShiji Yang <yangshiji66@outlook.com>
Wed, 18 Jun 2025 14:53:18 +0000 (22:53 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 3 Jul 2025 10:35:10 +0000 (12:35 +0200)
ltq_get_cp1_base() is an exported function, we must define
its prototype on header file. Fix warning:

arch/mips/lantiq/xway/vmmc.c:22:15: error: no previous prototype for 'ltq_get_cp1_base' [-Werror=missing-prototypes]
   22 | unsigned int *ltq_get_cp1_base(void)
      |               ^~~~~~~~~~~~~~~~

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h

index c2e0acb755cdc30b43c3c8c86abfe03a2ae5482e..dd9f621d0204fa8248752f28a1e8854ad833f289 100644 (file)
@@ -99,5 +99,8 @@ extern __iomem void *ltq_cgu_membase;
 extern void ltq_pmu_enable(unsigned int module);
 extern void ltq_pmu_disable(unsigned int module);
 
+/* VMMC */
+extern unsigned int *ltq_get_cp1_base(void);
+
 #endif /* CONFIG_SOC_TYPE_XWAY */
 #endif /* _LTQ_XWAY_H__ */