Replace old style lock initializer
Subsystems (2)
PATCH 1/1 Replace old style lock initializer
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 <[email protected]>
--- arch/alpha/include/asm/rwsem.h | 2 +- arch/xtensa/include/asm/rwsem.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/alpha/include/asm/rwsem.h +1 -1
@@ -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) \
arch/xtensa/include/asm/rwsem.h +1 -1
@@ -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) \
Signature · 1 line
1.6.5.GIT