Loading arch/mips/kernel/vpe.c +8 −9 Original line number Original line Diff line number Diff line Loading @@ -155,10 +155,9 @@ struct { }; }; static void release_progmem(void *ptr); static void release_progmem(void *ptr); extern void save_gp_address(unsigned int secbase, unsigned int rel); /* get the vpe associated with this minor */ /* get the vpe associated with this minor */ struct vpe *get_vpe(int minor) static struct vpe *get_vpe(int minor) { { struct vpe *v; struct vpe *v; Loading @@ -174,7 +173,7 @@ struct vpe *get_vpe(int minor) } } /* get the vpe associated with this minor */ /* get the vpe associated with this minor */ struct tc *get_tc(int index) static struct tc *get_tc(int index) { { struct tc *t; struct tc *t; Loading @@ -199,7 +198,7 @@ struct tc *get_tc_unused(void) } } /* allocate a vpe and associate it with this minor (or index) */ /* allocate a vpe and associate it with this minor (or index) */ struct vpe *alloc_vpe(int minor) static struct vpe *alloc_vpe(int minor) { { struct vpe *v; struct vpe *v; Loading @@ -216,7 +215,7 @@ struct vpe *alloc_vpe(int minor) } } /* allocate a tc. At startup only tc0 is running, all other can be halted. */ /* allocate a tc. At startup only tc0 is running, all other can be halted. */ struct tc *alloc_tc(int index) static struct tc *alloc_tc(int index) { { struct tc *tc; struct tc *tc; Loading @@ -232,7 +231,7 @@ out: } } /* clean up and free everything */ /* clean up and free everything */ void release_vpe(struct vpe *v) static void release_vpe(struct vpe *v) { { list_del(&v->list); list_del(&v->list); if (v->load_addr) if (v->load_addr) Loading @@ -240,7 +239,7 @@ void release_vpe(struct vpe *v) kfree(v); kfree(v); } } void dump_mtregs(void) static void dump_mtregs(void) { { unsigned long val; unsigned long val; Loading Loading @@ -551,7 +550,7 @@ static char *rstrs[] = { [R_MIPS_PC16] = "MIPS_PC16" [R_MIPS_PC16] = "MIPS_PC16" }; }; int apply_relocations(Elf32_Shdr *sechdrs, static int apply_relocations(Elf32_Shdr *sechdrs, const char *strtab, const char *strtab, unsigned int symindex, unsigned int symindex, unsigned int relsec, unsigned int relsec, Loading Loading @@ -596,7 +595,7 @@ int apply_relocations(Elf32_Shdr *sechdrs, return 0; return 0; } } void save_gp_address(unsigned int secbase, unsigned int rel) static inline void save_gp_address(unsigned int secbase, unsigned int rel) { { gp_addr = secbase + rel; gp_addr = secbase + rel; gp_offs = gp_addr - (secbase & 0xffff0000); gp_offs = gp_addr - (secbase & 0xffff0000); Loading Loading
arch/mips/kernel/vpe.c +8 −9 Original line number Original line Diff line number Diff line Loading @@ -155,10 +155,9 @@ struct { }; }; static void release_progmem(void *ptr); static void release_progmem(void *ptr); extern void save_gp_address(unsigned int secbase, unsigned int rel); /* get the vpe associated with this minor */ /* get the vpe associated with this minor */ struct vpe *get_vpe(int minor) static struct vpe *get_vpe(int minor) { { struct vpe *v; struct vpe *v; Loading @@ -174,7 +173,7 @@ struct vpe *get_vpe(int minor) } } /* get the vpe associated with this minor */ /* get the vpe associated with this minor */ struct tc *get_tc(int index) static struct tc *get_tc(int index) { { struct tc *t; struct tc *t; Loading @@ -199,7 +198,7 @@ struct tc *get_tc_unused(void) } } /* allocate a vpe and associate it with this minor (or index) */ /* allocate a vpe and associate it with this minor (or index) */ struct vpe *alloc_vpe(int minor) static struct vpe *alloc_vpe(int minor) { { struct vpe *v; struct vpe *v; Loading @@ -216,7 +215,7 @@ struct vpe *alloc_vpe(int minor) } } /* allocate a tc. At startup only tc0 is running, all other can be halted. */ /* allocate a tc. At startup only tc0 is running, all other can be halted. */ struct tc *alloc_tc(int index) static struct tc *alloc_tc(int index) { { struct tc *tc; struct tc *tc; Loading @@ -232,7 +231,7 @@ out: } } /* clean up and free everything */ /* clean up and free everything */ void release_vpe(struct vpe *v) static void release_vpe(struct vpe *v) { { list_del(&v->list); list_del(&v->list); if (v->load_addr) if (v->load_addr) Loading @@ -240,7 +239,7 @@ void release_vpe(struct vpe *v) kfree(v); kfree(v); } } void dump_mtregs(void) static void dump_mtregs(void) { { unsigned long val; unsigned long val; Loading Loading @@ -551,7 +550,7 @@ static char *rstrs[] = { [R_MIPS_PC16] = "MIPS_PC16" [R_MIPS_PC16] = "MIPS_PC16" }; }; int apply_relocations(Elf32_Shdr *sechdrs, static int apply_relocations(Elf32_Shdr *sechdrs, const char *strtab, const char *strtab, unsigned int symindex, unsigned int symindex, unsigned int relsec, unsigned int relsec, Loading Loading @@ -596,7 +595,7 @@ int apply_relocations(Elf32_Shdr *sechdrs, return 0; return 0; } } void save_gp_address(unsigned int secbase, unsigned int rel) static inline void save_gp_address(unsigned int secbase, unsigned int rel) { { gp_addr = secbase + rel; gp_addr = secbase + rel; gp_offs = gp_addr - (secbase & 0xffff0000); gp_offs = gp_addr - (secbase & 0xffff0000); Loading