Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] MIPS: Fix build breakage in cpu-probe.c
@ 2011-05-13  0:24 David Daney
  2011-05-13  1:26 ` Kevin Cernekee
  2011-05-13  9:12 ` Ralf Baechle
  0 siblings, 2 replies; 4+ messages in thread
From: David Daney @ 2011-05-13  0:24 UTC (permalink / raw)
  To: linux-mips, ralf; +Cc: David Daney

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-05-13  9:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-13  0:24 [PATCH] MIPS: Fix build breakage in cpu-probe.c David Daney
2011-05-13  1:26 ` Kevin Cernekee
2011-05-13  9:11   ` Ralf Baechle
2011-05-13  9:12 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox