public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH ] x86 : Fix compilation warning on paravirt-spinlocks.c
@ 2008-12-08 14:56 Rakib Mullick
  2008-12-08 15:09 ` Ingo Molnar
  0 siblings, 1 reply; 4+ messages in thread
From: Rakib Mullick @ 2008-12-08 14:56 UTC (permalink / raw)
  To: Linux-kernel Mailing List; +Cc: Andrew Morton, Ingo Molnar

Impact: Fix compilation warning.

 CC      arch/x86/kernel/paravirt-spinlocks.o
arch/x86/kernel/paravirt-spinlocks.c: In function `default_spin_lock_flags':
arch/x86/kernel/paravirt-spinlocks.c:12: warning: passing arg 1 of
`__raw_spin_lock' from incompatible pointer type

This patch fixes the above warning.  __raw_spin_lock(lock) is declared
when CONFIG_SMP is defined. Thus, a call to __raw_spin_lock requires
checking CONFIG_SMP is defined or not.

Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>

--- linux-2.6-orig/arch/x86/kernel/paravirt-spinlocks.c	2008-12-05
19:53:15.000000000 +0600
+++ linux-2.6/arch/x86/kernel/paravirt-spinlocks.c	2008-12-07
23:52:59.000000000 +0600
@@ -9,7 +9,9 @@

 static void default_spin_lock_flags(struct raw_spinlock *lock,
unsigned long flags)
 {
+#ifdef	CONFIG_SMP
 	__raw_spin_lock(lock);
+#endif
 }

 struct pv_lock_ops pv_lock_ops = {

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

end of thread, other threads:[~2008-12-12 11:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-08 14:56 [PATCH ] x86 : Fix compilation warning on paravirt-spinlocks.c Rakib Mullick
2008-12-08 15:09 ` Ingo Molnar
2008-12-10  6:28   ` Rakib Mullick
2008-12-12 11:11     ` Ingo Molnar

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