linux-mips
[Top] [All Lists]

[PATCH] fix smp.h warning on non SMP build

To: linux-mips@linux-mips.org
Subject: [PATCH] fix smp.h warning on non SMP build
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Tue, 27 Jun 2006 00:41:49 +0900 (JST)
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
smp_call_function() is inline for SMP but macro for non SMP.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>

diff --git a/include/asm-mips/smp.h b/include/asm-mips/smp.h
index af23139..aa3778f 100644
--- a/include/asm-mips/smp.h
+++ b/include/asm-mips/smp.h
@@ -111,10 +111,10 @@ static inline void smp_send_reschedule(i
 
 extern asmlinkage void smp_call_function_interrupt(void);
 
-#endif /* CONFIG_SMP */
-
 int smp_call_function(void(*func)(void *info), void *info, int retry, int 
wait);
 
+#endif /* CONFIG_SMP */
+
 /*
  * Special Variant of smp_call_function for use by cache functions:
  *
@@ -127,7 +127,8 @@ int smp_call_function(void(*func)(void *
  */
 static inline void __on_other_cores(void (*func) (void *info), void *info)
 {
-#if !defined(CONFIG_MIPS_MT_SMP) && !defined(CONFIG_MIPS_MT_SMTC)
+#if defined(CONFIG_SMP) && \
+       !defined(CONFIG_MIPS_MT_SMP) && !defined(CONFIG_MIPS_MT_SMTC)
        smp_call_function(func, info, 1, 1);
 #endif
 }

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] fix smp.h warning on non SMP build, Atsushi Nemoto <=