Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156414
b: refs/heads/master
c: f18b51c
h: refs/heads/master
v: v3
  • Loading branch information
Ralf Baechle committed Aug 3, 2009
1 parent d841cab commit 1f23f35
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 477c4b07406357ad93d0e32788dbf3ee814eadaa
refs/heads/master: f18b51cc1f97ca290256e8f94127f6856a42d605
17 changes: 8 additions & 9 deletions trunk/arch/mips/kernel/vpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,9 @@ struct {
};

static void release_progmem(void *ptr);
extern void save_gp_address(unsigned int secbase, unsigned int rel);

/* get the vpe associated with this minor */
struct vpe *get_vpe(int minor)
static struct vpe *get_vpe(int minor)
{
struct vpe *v;

Expand All @@ -174,7 +173,7 @@ struct vpe *get_vpe(int minor)
}

/* get the vpe associated with this minor */
struct tc *get_tc(int index)
static struct tc *get_tc(int index)
{
struct tc *t;

Expand All @@ -199,7 +198,7 @@ struct tc *get_tc_unused(void)
}

/* 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;

Expand All @@ -216,7 +215,7 @@ struct vpe *alloc_vpe(int minor)
}

/* 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;

Expand All @@ -232,15 +231,15 @@ struct tc *alloc_tc(int index)
}

/* clean up and free everything */
void release_vpe(struct vpe *v)
static void release_vpe(struct vpe *v)
{
list_del(&v->list);
if (v->load_addr)
release_progmem(v);
kfree(v);
}

void dump_mtregs(void)
static void dump_mtregs(void)
{
unsigned long val;

Expand Down Expand Up @@ -551,7 +550,7 @@ static char *rstrs[] = {
[R_MIPS_PC16] = "MIPS_PC16"
};

int apply_relocations(Elf32_Shdr *sechdrs,
static int apply_relocations(Elf32_Shdr *sechdrs,
const char *strtab,
unsigned int symindex,
unsigned int relsec,
Expand Down Expand Up @@ -596,7 +595,7 @@ int apply_relocations(Elf32_Shdr *sechdrs,
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_offs = gp_addr - (secbase & 0xffff0000);
Expand Down

0 comments on commit 1f23f35

Please sign in to comment.