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:
parent
3c0b0cdd4b
commit
b208b10645
@ -273,7 +273,7 @@ static void fusd_vfree(void *ptr);
|
||||
/* Functions like this should be in the kernel, but they are not. Sigh. */
|
||||
# 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);
|
||||
#else
|
||||
DEFINE_SEMAPHORE(atomic_ops);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user