summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds2010-08-12 18:29:06 +0200
committerLinus Torvalds2010-08-12 18:29:06 +0200
commitd4a47ac15487ee855386e414bf51435d83cd1812 (patch)
tree86700cde504bf6f345da8c76201fe20e785f4337
parentMerge branch 'drm-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff)
parent[IA64] Fix rwsem: RWSEM_WAITING_BIAS must not be unsigned. (diff)
downloadkernel-qcow2-linux-d4a47ac15487ee855386e414bf51435d83cd1812.tar.gz
kernel-qcow2-linux-d4a47ac15487ee855386e414bf51435d83cd1812.tar.xz
kernel-qcow2-linux-d4a47ac15487ee855386e414bf51435d83cd1812.zip
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6: [IA64] Fix rwsem: RWSEM_WAITING_BIAS must not be unsigned.
-rw-r--r--arch/ia64/include/asm/rwsem.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/ia64/include/asm/rwsem.h b/arch/ia64/include/asm/rwsem.h
index e8762688e8e3..215d5454c7d3 100644
--- a/arch/ia64/include/asm/rwsem.h
+++ b/arch/ia64/include/asm/rwsem.h
@@ -40,9 +40,9 @@ struct rw_semaphore {
};
#define RWSEM_UNLOCKED_VALUE __IA64_UL_CONST(0x0000000000000000)
-#define RWSEM_ACTIVE_BIAS __IA64_UL_CONST(0x0000000000000001)
-#define RWSEM_ACTIVE_MASK __IA64_UL_CONST(0x00000000ffffffff)
-#define RWSEM_WAITING_BIAS -__IA64_UL_CONST(0x0000000100000000)
+#define RWSEM_ACTIVE_BIAS (1L)
+#define RWSEM_ACTIVE_MASK (0xffffffffL)
+#define RWSEM_WAITING_BIAS (-0x100000000L)
#define RWSEM_ACTIVE_READ_BIAS RWSEM_ACTIVE_BIAS
#define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)