I was a bit optimistic. 2.6.32 does not support DECLARE_SEMAPHORE.

Now use DECLARE_MUTEX up to 2.6.35 (need to be checked)

Signed-off-by: Godzil <godzil@godzil.net>
This commit is contained in:
Godzil 2012-10-16 20:07:34 +02:00
parent 3c0b0cdd4b
commit b208b10645

View File

@ -273,7 +273,7 @@ static void fusd_vfree(void *ptr);
/* Functions like this should be in the kernel, but they are not. Sigh. */ /* Functions like this should be in the kernel, but they are not. Sigh. */
# ifdef CONFIG_SMP # ifdef CONFIG_SMP
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
DECLARE_MUTEX(atomic_ops); DECLARE_MUTEX(atomic_ops);
#else #else
DEFINE_SEMAPHORE(atomic_ops); DEFINE_SEMAPHORE(atomic_ops);