Skip to content

Commit

Permalink
[MIPS] Make two functions static
Browse files Browse the repository at this point in the history
The following routines

uasm_rel_highest()
uasm_rel_higher()

are needlessly defined global. This patch makes them static.

Compile-tested using a customized config for the Malta board. Booting
the same board up to the shell prompt was also successful with this
patch applied.

Spotted by sparse.

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.fi>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Dmitri Vorobiev authored and Ralf Baechle committed Jul 15, 2008
1 parent 07cdb78 commit 17f61e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions arch/mips/mm/uasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ int __cpuinit uasm_in_compat_space_p(long addr)
#endif
}

int __cpuinit uasm_rel_highest(long val)
static int __cpuinit uasm_rel_highest(long val)
{
#ifdef CONFIG_64BIT
return ((((val + 0x800080008000L) >> 48) & 0xffff) ^ 0x8000) - 0x8000;
Expand All @@ -405,7 +405,7 @@ int __cpuinit uasm_rel_highest(long val)
#endif
}

int __cpuinit uasm_rel_higher(long val)
static int __cpuinit uasm_rel_higher(long val)
{
#ifdef CONFIG_64BIT
return ((((val + 0x80008000L) >> 32) & 0xffff) ^ 0x8000) - 0x8000;
Expand Down
2 changes: 0 additions & 2 deletions arch/mips/mm/uasm.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ struct uasm_label {
void __cpuinit uasm_build_label(struct uasm_label **lab, u32 *addr, int lid);
#ifdef CONFIG_64BIT
int uasm_in_compat_space_p(long addr);
int uasm_rel_highest(long val);
int uasm_rel_higher(long val);
#endif
int uasm_rel_hi(long val);
int uasm_rel_lo(long val);
Expand Down

0 comments on commit 17f61e6

Please sign in to comment.