]> git.ipfire.org Git - thirdparty/openwrt.git/blob
d3ed482badb23eaac53da829278b662c90d3c209
[thirdparty/openwrt.git] /
1 From 844615dd0f2d95c018ec66b943e08af22b62aff3 Mon Sep 17 00:00:00 2001
2 From: Shiji Yang <yangshiji66@outlook.com>
3 Date: Thu, 3 Jul 2025 21:06:32 +0800
4 Subject: [PATCH] MIPS: vpe-mt: add missing prototypes for
5 vpe_{alloc,start,stop,free}
6
7 These functions are exported but their prototypes are not defined.
8 This patch adds the missing function prototypes to fix the following
9 compilation warnings:
10
11 arch/mips/kernel/vpe-mt.c:180:7: error: no previous prototype for 'vpe_alloc' [-Werror=missing-prototypes]
12 180 | void *vpe_alloc(void)
13 | ^~~~~~~~~
14 arch/mips/kernel/vpe-mt.c:198:5: error: no previous prototype for 'vpe_start' [-Werror=missing-prototypes]
15 198 | int vpe_start(void *vpe, unsigned long start)
16 | ^~~~~~~~~
17 arch/mips/kernel/vpe-mt.c:208:5: error: no previous prototype for 'vpe_stop' [-Werror=missing-prototypes]
18 208 | int vpe_stop(void *vpe)
19 | ^~~~~~~~
20 arch/mips/kernel/vpe-mt.c:229:5: error: no previous prototype for 'vpe_free' [-Werror=missing-prototypes]
21 229 | int vpe_free(void *vpe)
22 | ^~~~~~~~
23
24 Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
25 Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
26 ---
27 arch/mips/include/asm/vpe.h | 8 ++++++++
28 1 file changed, 8 insertions(+)
29
30 --- a/arch/mips/include/asm/vpe.h
31 +++ b/arch/mips/include/asm/vpe.h
32 @@ -119,4 +119,12 @@ void cleanup_tc(struct tc *tc);
33
34 int __init vpe_module_init(void);
35 void __exit vpe_module_exit(void);
36 +
37 +#ifdef CONFIG_MIPS_VPE_LOADER_MT
38 +void *vpe_alloc(void);
39 +int vpe_start(void *vpe, unsigned long start);
40 +int vpe_stop(void *vpe);
41 +int vpe_free(void *vpe);
42 +#endif /* CONFIG_MIPS_VPE_LOADER_MT */
43 +
44 #endif /* _ASM_VPE_H */