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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



smp_call_function() is inline for SMP but macro for non SMP.

Signed-off-by: Atsushi Nemoto <anemo@xxxxxxxxxxxxx>

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
 }


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux