aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sh/spinlock_types.h
diff options
context:
space:
mode:
authorEvgeniy Polyakov <johnpol@2ka.mipt.ru>2007-05-31 13:46:21 +0900
committerPaul Mundt <lethal@linux-sh.org>2007-05-31 13:46:21 +0900
commit66c5227ecd3041b0467a091ad81b8d312e572ea8 (patch)
tree8d910d8f45c498c4d4f66694ff425f4b7d90d114 /include/asm-sh/spinlock_types.h
parentsh: Fix vsyscall build failure. (diff)
downloadlinux-dev-66c5227ecd3041b0467a091ad81b8d312e572ea8.tar.xz
linux-dev-66c5227ecd3041b0467a091ad81b8d312e572ea8.zip
sh: trivial build cleanups.
Several errors were spotted during building for custom config (SMP included). Although SMP still does not compile (no ipi and __smp_call_function) and does not work, this looks a bit cleaner. Some other errors obtained via gcc-4.1.0 build. Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/spinlock_types.h')
-rw-r--r--include/asm-sh/spinlock_types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-sh/spinlock_types.h b/include/asm-sh/spinlock_types.h
index 8c41b6c3aac8..5c58134f2c4e 100644
--- a/include/asm-sh/spinlock_types.h
+++ b/include/asm-sh/spinlock_types.h
@@ -9,7 +9,9 @@ typedef struct {
volatile unsigned long lock;
} raw_spinlock_t;
-#define __SPIN_LOCK_UNLOCKED { 0 }
+#define __RAW_SPIN_LOCK_UNLOCKED { 1 }
+
+#include <asm/atomic.h>
typedef struct {
raw_spinlock_t lock;