]> git.baikalelectronics.ru Git - kernel.git/commit
x86: fix default_spin_lock_flags() prototype
authorIngo Molnar <mingo@elte.hu>
Fri, 17 Oct 2008 14:09:57 +0000 (16:09 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 8 Dec 2008 15:08:29 +0000 (16:08 +0100)
commitbc0a93cf16e419300acb8b98598a7e13fab18c6e
treeb5da8220debdc276109c5e03a4b57cfc73a24d98
parent3f7d465a221b901686fa24d9422b24e89ad5141f
x86: fix default_spin_lock_flags() prototype

these warnings:

  arch/x86/kernel/paravirt-spinlocks.c: In function ‘default_spin_lock_flags’:
  arch/x86/kernel/paravirt-spinlocks.c:12: warning: passing argument 1 of ‘__raw_spin_lock’ from incompatible pointer type
  arch/x86/kernel/paravirt-spinlocks.c: At top level:
  arch/x86/kernel/paravirt-spinlocks.c:11: warning: ‘default_spin_lock_flags’ defined but not used

showed that the prototype of default_spin_lock_flags() was confused about
what type spinlocks have.

the proper type on UP is raw_spinlock_t.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/paravirt-spinlocks.c