patch-2.4.9 linux/include/asm-arm/semaphore.h
Next file: linux/include/asm-arm/setup.h
Previous file: linux/include/asm-arm/processor.h
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Sun Aug 12 11:14:00 2001
- Orig file:
v2.4.8/linux/include/asm-arm/semaphore.h
- Orig date:
Tue Apr 17 17:19:30 2001
diff -u --recursive --new-file v2.4.8/linux/include/asm-arm/semaphore.h linux/include/asm-arm/semaphore.h
@@ -42,7 +42,7 @@
#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)
#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)
-extern inline void sema_init(struct semaphore *sem, int val)
+static inline void sema_init(struct semaphore *sem, int val)
{
atomic_set(&sem->count, val);
sem->sleepers = 0;
@@ -79,7 +79,7 @@
* This is ugly, but we want the default case to fall through.
* "__down" is the actual routine that waits...
*/
-extern inline void down(struct semaphore * sem)
+static inline void down(struct semaphore * sem)
{
#if WAITQUEUE_DEBUG
CHECK_MAGIC(sem->__magic);
@@ -92,7 +92,7 @@
* This is ugly, but we want the default case to fall through.
* "__down_interruptible" is the actual routine that waits...
*/
-extern inline int down_interruptible (struct semaphore * sem)
+static inline int down_interruptible (struct semaphore * sem)
{
#if WAITQUEUE_DEBUG
CHECK_MAGIC(sem->__magic);
@@ -101,7 +101,7 @@
return __down_op_ret(sem, __down_interruptible_failed);
}
-extern inline int down_trylock(struct semaphore *sem)
+static inline int down_trylock(struct semaphore *sem)
{
#if WAITQUEUE_DEBUG
CHECK_MAGIC(sem->__magic);
@@ -116,7 +116,7 @@
* The default case (no contention) will result in NO
* jumps for both down() and up().
*/
-extern inline void up(struct semaphore * sem)
+static inline void up(struct semaphore * sem)
{
#if WAITQUEUE_DEBUG
CHECK_MAGIC(sem->__magic);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)