Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2002-07-31 22:23:21 -0700
committerChristoph Hellwig <hch@sb.bsdonline.org>2002-07-31 22:23:21 -0700
commit1ed8b3815263055e0eb0ec8eec4be438109876cc (patch)
treedd2f4e217de784a0b7864c80c42972a02e70afbb
parent0ff25cbe9ca30418d54e15d2380353c9e828845a (diff)
[PATCH] explicit signed char cast in i386 spin_is_locked
To make spinlock debugging work with -funsigned-char the i386 version of spin_is_locked() needs to cast to signed char explicitly instead of just char. XFS needed -funsigned-char (and currently still has it), but it doesn't evert hurt.
-rw-r--r--include/asm-i386/spinlock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-i386/spinlock.h b/include/asm-i386/spinlock.h
index 678a64fed800..d565c78c2d81 100644
--- a/include/asm-i386/spinlock.h
+++ b/include/asm-i386/spinlock.h
@@ -39,7 +39,7 @@ typedef struct {
* We make no fairness assumptions. They have a cost.
*/
-#define spin_is_locked(x) (*(volatile char *)(&(x)->lock) <= 0)
+#define spin_is_locked(x) (*(volatile signed char *)(&(x)->lock) <= 0)
#define spin_unlock_wait(x) do { barrier(); } while(spin_is_locked(x))
#define spin_lock_string \