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