MIPS: VPE: Make various functions static.

None of these is used outside the VPE loader.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+8 -9
+8 -9
arch/mips/kernel/vpe.c
··· 155 155 }; 156 156 157 157 static void release_progmem(void *ptr); 158 - extern void save_gp_address(unsigned int secbase, unsigned int rel); 159 158 160 159 /* get the vpe associated with this minor */ 161 - struct vpe *get_vpe(int minor) 160 + static struct vpe *get_vpe(int minor) 162 161 { 163 162 struct vpe *v; 164 163 ··· 173 174 } 174 175 175 176 /* get the vpe associated with this minor */ 176 - struct tc *get_tc(int index) 177 + static struct tc *get_tc(int index) 177 178 { 178 179 struct tc *t; 179 180 ··· 198 199 } 199 200 200 201 /* allocate a vpe and associate it with this minor (or index) */ 201 - struct vpe *alloc_vpe(int minor) 202 + static struct vpe *alloc_vpe(int minor) 202 203 { 203 204 struct vpe *v; 204 205 ··· 215 216 } 216 217 217 218 /* allocate a tc. At startup only tc0 is running, all other can be halted. */ 218 - struct tc *alloc_tc(int index) 219 + static struct tc *alloc_tc(int index) 219 220 { 220 221 struct tc *tc; 221 222 ··· 231 232 } 232 233 233 234 /* clean up and free everything */ 234 - void release_vpe(struct vpe *v) 235 + static void release_vpe(struct vpe *v) 235 236 { 236 237 list_del(&v->list); 237 238 if (v->load_addr) ··· 239 240 kfree(v); 240 241 } 241 242 242 - void dump_mtregs(void) 243 + static void dump_mtregs(void) 243 244 { 244 245 unsigned long val; 245 246 ··· 550 551 [R_MIPS_PC16] = "MIPS_PC16" 551 552 }; 552 553 553 - int apply_relocations(Elf32_Shdr *sechdrs, 554 + static int apply_relocations(Elf32_Shdr *sechdrs, 554 555 const char *strtab, 555 556 unsigned int symindex, 556 557 unsigned int relsec, ··· 595 596 return 0; 596 597 } 597 598 598 - void save_gp_address(unsigned int secbase, unsigned int rel) 599 + static inline void save_gp_address(unsigned int secbase, unsigned int rel) 599 600 { 600 601 gp_addr = secbase + rel; 601 602 gp_offs = gp_addr - (secbase & 0xffff0000);