Browse Source

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>
Godzil 11 years ago
parent
commit
b208b10645
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/kfusd.h

+ 1 - 1
include/kfusd.h

@@ -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);