linux-mips
[Top] [All Lists]

[PATCH] MIPS: Fix build breakage in cpu-probe.c

To: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: [PATCH] MIPS: Fix build breakage in cpu-probe.c
From: David Daney <ddaney@caviumnetworks.com>
Date: Thu, 12 May 2011 17:24:59 -0700
Cc: David Daney <ddaney@caviumnetworks.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Move set_elf_platform() above all its uses.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---

linux-queue is currently broken, this fixes it.

 arch/mips/kernel/cpu-probe.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index 054a640..bb133d1 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -291,6 +291,12 @@ static inline int cpu_has_confreg(void)
 #endif
 }
 
+static inline void set_elf_platform(int cpu, const char *plat)
+{
+       if (cpu == 0)
+               __elf_platform = plat;
+}
+
 /*
  * Get the FPU Implementation/Revision.
  */
@@ -781,12 +787,6 @@ static void __cpuinit decode_configs(struct cpuinfo_mips 
*c)
                c->core = read_c0_ebase() & 0x3ff;
 }
 
-static inline void set_elf_platform(int cpu, const char *plat)
-{
-       if (cpu == 0)
-               __elf_platform = plat;
-}
-
 static inline void cpu_probe_mips(struct cpuinfo_mips *c, unsigned int cpu)
 {
        decode_configs(c);
-- 
1.7.2.3


<Prev in Thread] Current Thread [Next in Thread>