diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2009-08-03 07:54:35 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-08-03 12:52:49 -0400 |
commit | f18b51cc1f97ca290256e8f94127f6856a42d605 (patch) | |
tree | 301e42016b4d5672259b4c4f8765656fc0eec44a /arch/mips | |
parent | 477c4b07406357ad93d0e32788dbf3ee814eadaa (diff) |
MIPS: VPE: Make various functions static.
None of these is used outside the VPE loader.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/kernel/vpe.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c index 245b03e88089..6cbeb2a54527 100644 --- a/arch/mips/kernel/vpe.c +++ b/arch/mips/kernel/vpe.c | |||
@@ -155,10 +155,9 @@ struct { | |||
155 | }; | 155 | }; |
156 | 156 | ||
157 | static void release_progmem(void *ptr); | 157 | static void release_progmem(void *ptr); |
158 | extern void save_gp_address(unsigned int secbase, unsigned int rel); | ||
159 | 158 | ||
160 | /* get the vpe associated with this minor */ | 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 | struct vpe *v; | 162 | struct vpe *v; |
164 | 163 | ||
@@ -174,7 +173,7 @@ struct vpe *get_vpe(int minor) | |||
174 | } | 173 | } |
175 | 174 | ||
176 | /* get the vpe associated with this minor */ | 175 | /* get the vpe associated with this minor */ |
177 | struct tc *get_tc(int index) | 176 | static struct tc *get_tc(int index) |
178 | { | 177 | { |
179 | struct tc *t; | 178 | struct tc *t; |
180 | 179 | ||
@@ -199,7 +198,7 @@ struct tc *get_tc_unused(void) | |||
199 | } | 198 | } |
200 | 199 | ||
201 | /* allocate a vpe and associate it with this minor (or index) */ | 200 | /* allocate a vpe and associate it with this minor (or index) */ |
202 | struct vpe *alloc_vpe(int minor) | 201 | static struct vpe *alloc_vpe(int minor) |
203 | { | 202 | { |
204 | struct vpe *v; | 203 | struct vpe *v; |
205 | 204 | ||
@@ -216,7 +215,7 @@ struct vpe *alloc_vpe(int minor) | |||
216 | } | 215 | } |
217 | 216 | ||
218 | /* allocate a tc. At startup only tc0 is running, all other can be halted. */ | 217 | /* allocate a tc. At startup only tc0 is running, all other can be halted. */ |
219 | struct tc *alloc_tc(int index) | 218 | static struct tc *alloc_tc(int index) |
220 | { | 219 | { |
221 | struct tc *tc; | 220 | struct tc *tc; |
222 | 221 | ||
@@ -232,7 +231,7 @@ out: | |||
232 | } | 231 | } |
233 | 232 | ||
234 | /* clean up and free everything */ | 233 | /* clean up and free everything */ |
235 | void release_vpe(struct vpe *v) | 234 | static void release_vpe(struct vpe *v) |
236 | { | 235 | { |
237 | list_del(&v->list); | 236 | list_del(&v->list); |
238 | if (v->load_addr) | 237 | if (v->load_addr) |
@@ -240,7 +239,7 @@ void release_vpe(struct vpe *v) | |||
240 | kfree(v); | 239 | kfree(v); |
241 | } | 240 | } |
242 | 241 | ||
243 | void dump_mtregs(void) | 242 | static void dump_mtregs(void) |
244 | { | 243 | { |
245 | unsigned long val; | 244 | unsigned long val; |
246 | 245 | ||
@@ -551,7 +550,7 @@ static char *rstrs[] = { | |||
551 | [R_MIPS_PC16] = "MIPS_PC16" | 550 | [R_MIPS_PC16] = "MIPS_PC16" |
552 | }; | 551 | }; |
553 | 552 | ||
554 | int apply_relocations(Elf32_Shdr *sechdrs, | 553 | static int apply_relocations(Elf32_Shdr *sechdrs, |
555 | const char *strtab, | 554 | const char *strtab, |
556 | unsigned int symindex, | 555 | unsigned int symindex, |
557 | unsigned int relsec, | 556 | unsigned int relsec, |
@@ -596,7 +595,7 @@ int apply_relocations(Elf32_Shdr *sechdrs, | |||
596 | return 0; | 595 | return 0; |
597 | } | 596 | } |
598 | 597 | ||
599 | void save_gp_address(unsigned int secbase, unsigned int rel) | 598 | static inline void save_gp_address(unsigned int secbase, unsigned int rel) |
600 | { | 599 | { |
601 | gp_addr = secbase + rel; | 600 | gp_addr = secbase + rel; |
602 | gp_offs = gp_addr - (secbase & 0xffff0000); | 601 | gp_offs = gp_addr - (secbase & 0xffff0000); |