Skip to content

Commit 844615d

Browse files
DragonBlueptsbogend
authored andcommitted
MIPS: vpe-mt: add missing prototypes for vpe_{alloc,start,stop,free}
These functions are exported but their prototypes are not defined. This patch adds the missing function prototypes to fix the following compilation warnings: arch/mips/kernel/vpe-mt.c:180:7: error: no previous prototype for 'vpe_alloc' [-Werror=missing-prototypes] 180 | void *vpe_alloc(void) | ^~~~~~~~~ arch/mips/kernel/vpe-mt.c:198:5: error: no previous prototype for 'vpe_start' [-Werror=missing-prototypes] 198 | int vpe_start(void *vpe, unsigned long start) | ^~~~~~~~~ arch/mips/kernel/vpe-mt.c:208:5: error: no previous prototype for 'vpe_stop' [-Werror=missing-prototypes] 208 | int vpe_stop(void *vpe) | ^~~~~~~~ arch/mips/kernel/vpe-mt.c:229:5: error: no previous prototype for 'vpe_free' [-Werror=missing-prototypes] 229 | int vpe_free(void *vpe) | ^~~~~~~~ Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent b5a1f98 commit 844615d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • arch/mips/include/asm

arch/mips/include/asm/vpe.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,12 @@ void cleanup_tc(struct tc *tc);
119119

120120
int __init vpe_module_init(void);
121121
void __exit vpe_module_exit(void);
122+
123+
#ifdef CONFIG_MIPS_VPE_LOADER_MT
124+
void *vpe_alloc(void);
125+
int vpe_start(void *vpe, unsigned long start);
126+
int vpe_stop(void *vpe);
127+
int vpe_free(void *vpe);
128+
#endif /* CONFIG_MIPS_VPE_LOADER_MT */
129+
122130
#endif /* _ASM_VPE_H */

0 commit comments

Comments
 (0)