]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
authorArthur Othieno <a.othieno@bluewin.ch>
Sun, 30 Oct 2005 23:03:14 +0000 (15:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:27 +0000 (17:37 -0800)
__MUTEX_INITIALIZER() has no users, and equates to the more commonly used
DECLARE_MUTEX(), thus making it pretty much redundant.  Remove it for good.

Signed-off-by: Arthur Othieno <a.othieno@bluewin.ch>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
23 files changed:
include/asm-alpha/semaphore.h
include/asm-arm/semaphore.h
include/asm-arm26/semaphore.h
include/asm-cris/semaphore.h
include/asm-frv/semaphore.h
include/asm-h8300/semaphore.h
include/asm-i386/semaphore.h
include/asm-ia64/semaphore.h
include/asm-m32r/semaphore.h
include/asm-m68k/semaphore.h
include/asm-m68knommu/semaphore.h
include/asm-mips/semaphore.h
include/asm-parisc/semaphore.h
include/asm-ppc/semaphore.h
include/asm-ppc64/semaphore.h
include/asm-s390/semaphore.h
include/asm-sh/semaphore.h
include/asm-sh64/semaphore.h
include/asm-sparc/semaphore.h
include/asm-sparc64/semaphore.h
include/asm-v850/semaphore.h
include/asm-x86_64/semaphore.h
include/asm-xtensa/semaphore.h

index eb2cbd97d40434ba72ce57cdd364bac92ae49f4d..1a6295f2c2d43ddf0cdee488a6585a6ea225f1f0 100644 (file)
@@ -26,9 +26,6 @@ struct semaphore {
        .wait   = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait),   \
 }
 
-#define __MUTEX_INITIALIZER(name)                      \
-       __SEMAPHORE_INITIALIZER(name,1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name,count)                \
        struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
 
index 60f33e6eb800afc3d63de96dbeb269d8c43c7f57..71ca7d412687f9bb0e1a2c2e61a8857e96cec6f5 100644 (file)
@@ -24,8 +24,6 @@ struct semaphore {
        .wait   = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait),   \
 }
 
-#define __MUTEX_INITIALIZER(name) __SEMAPHORE_INIT(name,1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name,count)        \
        struct semaphore name = __SEMAPHORE_INIT(name,count)
 
index c1b6a1edad92dd349a808f5837540667619fbdae..ccf15e7041092d01f520c22772773678b41b4e73 100644 (file)
@@ -25,9 +25,6 @@ struct semaphore {
        .wait           = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait),   \
 }
 
-#define __MUTEX_INITIALIZER(name) \
-       __SEMAPHORE_INIT(name,1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name,count)        \
        struct semaphore name = __SEMAPHORE_INIT(name,count)
 
index 8ed7636ab31127274966641022db9c8580b7313c..39faf69bcf766523a7ad34e019b9ce63e40de2c5 100644 (file)
@@ -33,9 +33,6 @@ struct semaphore {
        .wait           = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait)    \
 }
 
-#define __MUTEX_INITIALIZER(name) \
-        __SEMAPHORE_INITIALIZER(name,1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name,count) \
         struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
 
index 393545630806246f531aac6636c72e2c75102daf..b18396288df1a0475fe7d28d09189076e2fcf7e4 100644 (file)
@@ -47,9 +47,6 @@ struct semaphore {
 #define __SEMAPHORE_INITIALIZER(name,count) \
 { count, SPIN_LOCK_UNLOCKED, LIST_HEAD_INIT((name).wait_list) __SEM_DEBUG_INIT(name) }
 
-#define __MUTEX_INITIALIZER(name) \
-       __SEMAPHORE_INITIALIZER(name,1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name,count) \
        struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
 
index fe6ef3774297ce03458185b2b0791fec57f78f51..81bae2a99192af8ed1747491f2af24929d8fd59a 100644 (file)
@@ -35,9 +35,6 @@ struct semaphore {
        .wait           = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait)    \
 }
 
-#define __MUTEX_INITIALIZER(name) \
-       __SEMAPHORE_INITIALIZER(name,1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name,count) \
        struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
 
index ea563da63e24d2c63088f0d749acabd8bb2f0e24..6a42b2142fd609f148b3cac6ea35692bf67dedfb 100644 (file)
@@ -55,9 +55,6 @@ struct semaphore {
        .wait           = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait)    \
 }
 
-#define __MUTEX_INITIALIZER(name) \
-       __SEMAPHORE_INITIALIZER(name,1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name,count) \
        struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
 
index 3a2f0f3f78f37255d15a0f364031d519fd8add66..bb8906285fab24104df8acf9c7f3ba1c35733ccf 100644 (file)
@@ -24,8 +24,6 @@ struct semaphore {
        .wait           = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait)    \
 }
 
-#define __MUTEX_INITIALIZER(name)      __SEMAPHORE_INITIALIZER(name,1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name,count)                                        \
        struct semaphore name = __SEMAPHORE_INITIALIZER(name, count)
 
index 53e3c60f21ec620c73f9099aa0f3cd91bc1ae5ee..bf447c52a0a126c8a26719885d5e081f73c3c728 100644 (file)
@@ -32,9 +32,6 @@ struct semaphore {
        .wait           = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait)    \
 }
 
-#define __MUTEX_INITIALIZER(name) \
-       __SEMAPHORE_INITIALIZER(name,1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name,count) \
        struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
 
index ab94cf3ed4477b70b3f61c39b0dcec7d4cfffd04..fd4c7cc3d3bebc83605c56e92c0a73a2d250dde8 100644 (file)
@@ -36,9 +36,6 @@ struct semaphore {
        .wait           = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait)    \
 }
 
-#define __MUTEX_INITIALIZER(name) \
-       __SEMAPHORE_INITIALIZER(name,1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name,count) \
        struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
 
index febe85add5096970d392a7ecea1e5b81e1ae252b..17aee15906a6fb6c77a5adf4db75c5f3fde6afc4 100644 (file)
@@ -35,9 +35,6 @@ struct semaphore {
        .wait           = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait)    \
 }
 
-#define __MUTEX_INITIALIZER(name) \
-       __SEMAPHORE_INITIALIZER(name,1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name,count) \
        struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
 
index c2c97dec661bb56c063eccb12a6095bf48896bba..3d6aa7c7ea818c388a5879cd79a541254f14e6d5 100644 (file)
@@ -45,9 +45,6 @@ struct semaphore {
        .wait           = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait)    \
 }
 
-#define __MUTEX_INITIALIZER(name) \
-       __SEMAPHORE_INITIALIZER(name, 1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name, count) \
        struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
 
index f78bb2e3453891fc8e279de31d72c83224b2be3e..c9ee41cd0707948d9b031cbb2587f39b0d2ba973 100644 (file)
@@ -49,9 +49,6 @@ struct semaphore {
        .wait           = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait)    \
 }
 
-#define __MUTEX_INITIALIZER(name) \
-       __SEMAPHORE_INITIALIZER(name,1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name,count) \
        struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
 
index 89e6e73be08c281e36e492d10530cec9b98e4099..d592937359c5cba7eb6ec3b8907e23c9deee53a6 100644 (file)
@@ -37,9 +37,6 @@ struct semaphore {
        .wait           = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait)    \
 }
 
-#define __MUTEX_INITIALIZER(name) \
-       __SEMAPHORE_INITIALIZER(name, 1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name, count) \
        struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
 
index aefe7753ea41698685912a6044112e8e13ddb991..d9ecb9969238fb1576efc62a76a7b744d410789d 100644 (file)
@@ -31,9 +31,6 @@ struct semaphore {
        .wait           = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait)    \
 }
 
-#define __MUTEX_INITIALIZER(name) \
-       __SEMAPHORE_INITIALIZER(name, 1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name, count) \
        struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
 
index 873def6f363abf8c7cbf16abc708645d5edd9833..702cf436698c60e77ee5198600df6ad8506c07c4 100644 (file)
@@ -29,9 +29,6 @@ struct semaphore {
 #define __SEMAPHORE_INITIALIZER(name,count) \
        { ATOMIC_INIT(count), __WAIT_QUEUE_HEAD_INITIALIZER((name).wait) }
 
-#define __MUTEX_INITIALIZER(name) \
-       __SEMAPHORE_INITIALIZER(name,1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name,count) \
        struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
 
index b923a77a8a7e69a6150e39f3646ca0770765705f..489f7847c5d96f8de23250192d6abe035182c27a 100644 (file)
@@ -33,9 +33,6 @@ struct semaphore {
        .wait           = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait)    \
 }
 
-#define __MUTEX_INITIALIZER(name) \
-       __SEMAPHORE_INITIALIZER(name,1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name,count) \
        struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
 
index fce22bb9a5465e598b642274afbc1101448dc415..4695264591495d4d7364a89e9cfdefd8c1b0c760 100644 (file)
@@ -40,9 +40,6 @@ struct semaphore {
        .wait           = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait)    \
 }
 
-#define __MUTEX_INITIALIZER(name) \
-       __SEMAPHORE_INITIALIZER(name,1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name,count) \
        struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
 
index 60ac5fd9eb487c3ece110c3d4fd4793355745cc6..f74ba31e265bd261dde9482bfdbe9bd78d1fcf12 100644 (file)
@@ -22,9 +22,6 @@ struct semaphore {
        .wait           = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait)    \
 }
 
-#define __MUTEX_INITIALIZER(name) \
-       __SEMAPHORE_INITIALIZER(name,1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name,count) \
        struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
 
index 7419dd88b49ed430a0e7978e55ece9388d728617..093dcc6788dbe0309eb380db540da991827e65a4 100644 (file)
@@ -22,9 +22,6 @@ struct semaphore {
        { ATOMIC_INIT(count), \
          __WAIT_QUEUE_HEAD_INITIALIZER((name).wait) }
 
-#define __MUTEX_INITIALIZER(name) \
-       __SEMAPHORE_INITIALIZER(name, 1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name, count) \
        struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
 
index c514062bb69e42fd1e303e1e562204abd99c6f1b..df6cdecf6c1f12522bb3f49ff30ba20ae9811309 100644 (file)
@@ -18,9 +18,6 @@ struct semaphore {
        { ATOMIC_INIT (count), 0,                                             \
          __WAIT_QUEUE_HEAD_INITIALIZER ((name).wait) }
 
-#define __MUTEX_INITIALIZER(name)                                            \
-       __SEMAPHORE_INITIALIZER (name,1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name,count)        \
        struct semaphore name = __SEMAPHORE_INITIALIZER (name,count)
 
index f325e39bf3b9d2f1db8698c61526a46a57f8b07d..a389aa6fe80f9207b49d4992ebf31f5303310e42 100644 (file)
@@ -56,9 +56,6 @@ struct semaphore {
        .wait           = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait)    \
 }
 
-#define __MUTEX_INITIALIZER(name) \
-       __SEMAPHORE_INITIALIZER(name,1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name,count) \
        struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
 
index 09e89ab3eb61ef9a5b189509cae8f201ac1fe032..2a10e193b92972504e12c68199cc5691cd084a04 100644 (file)
@@ -29,9 +29,6 @@ struct semaphore {
        .wait           = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait)    \
 }
 
-#define __MUTEX_INITIALIZER(name)                                      \
-       __SEMAPHORE_INITIALIZER(name, 1)
-
 #define __DECLARE_SEMAPHORE_GENERIC(name,count)                        \
        struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)