* [PATCH] Replace old style lock initializer
@ 2010-03-24 4:10 Justin P. Mattock
0 siblings, 0 replies; only message in thread
From: Justin P. Mattock @ 2010-03-24 4:10 UTC (permalink / raw)
To: trivial
Cc: linux-alpha, linux-xtensa-patches, linux-kernel, Justin P. Mattock
I seem to be on some deprecated thing. So after searching
the kernel I found:
SPIN_LOCK_UNLOCKED is deprecated, and that __SPIN_LOCK_UNLOCKED
should be used. My finding's have found this, so hopefully it's
legit.(the kernel compiles, but if anything else breaks
am unsure due to not having this arch).
Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>
---
arch/alpha/include/asm/rwsem.h | 2 +-
arch/xtensa/include/asm/rwsem.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/alpha/include/asm/rwsem.h b/arch/alpha/include/asm/rwsem.h
index 1570c0b..f9dd7fe 100644
--- a/arch/alpha/include/asm/rwsem.h
+++ b/arch/alpha/include/asm/rwsem.h
@@ -39,7 +39,7 @@ struct rw_semaphore {
};
#define __RWSEM_INITIALIZER(name) \
- { RWSEM_UNLOCKED_VALUE, SPIN_LOCK_UNLOCKED, \
+ { RWSEM_UNLOCKED_VALUE, __SPIN_LOCK_UNLOCKED, \
LIST_HEAD_INIT((name).wait_list) }
#define DECLARE_RWSEM(name) \
diff --git a/arch/xtensa/include/asm/rwsem.h b/arch/xtensa/include/asm/rwsem.h
index e39edf5..1b3865c 100644
--- a/arch/xtensa/include/asm/rwsem.h
+++ b/arch/xtensa/include/asm/rwsem.h
@@ -38,7 +38,7 @@ struct rw_semaphore {
};
#define __RWSEM_INITIALIZER(name) \
- { RWSEM_UNLOCKED_VALUE, SPIN_LOCK_UNLOCKED, \
+ { RWSEM_UNLOCKED_VALUE, __SPIN_LOCK_UNLOCKED, \
LIST_HEAD_INIT((name).wait_list) }
#define DECLARE_RWSEM(name) \
--
1.6.5.GIT
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-24 4:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-24 4:10 [PATCH] Replace old style lock initializer Justin P. Mattock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®