From b208b106453295a88626135eb2625894c3ecd844 Mon Sep 17 00:00:00 2001 From: Godzil Date: Tue, 16 Oct 2012 20:07:34 +0200 Subject: [PATCH] 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 --- include/kfusd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/kfusd.h b/include/kfusd.h index 2cc0edd..9362897 100755 --- a/include/kfusd.h +++ b/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);