Skip to contentSkip to conversation

mutex: fix compilation warning

PATCH New Jaswinder Singh Rajput 1 participant 1 message Mar 24, 2009 Locking primitives

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mutex: fix compilation warning

From: Jaswinder Singh Rajput <[email protected]>
Date: Tue, 24 Mar 2009 14:21:57 +0530
Subject: [PATCH] mutex: fix compilation warning

CC kernel/mutex.o
include/linux/mutex.h:136: warning: ‘mutex_lock’ declared inline after being called include/linux/mutex.h:136: warning: previous declaration of ‘mutex_lock’ was here

---
 include/linux/mutex.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/mutex.h +1 -1
index 93054fc..c8c384c 100644
@@ -133,7 +133,7 @@ extern int __must_check mutex_lock_killable_nested(struct mutex *lock,
 #define mutex_lock_interruptible(lock) mutex_lock_interruptible_nested(lock, 0)
 #define mutex_lock_killable(lock) mutex_lock_killable_nested(lock, 0)
 #else
-extern void mutex_lock(struct mutex *lock);
+extern inline void mutex_lock(struct mutex *lock);
 extern int __must_check mutex_lock_interruptible(struct mutex *lock);
 extern int __must_check mutex_lock_killable(struct mutex *lock);
 
Signature · 1 line
1.6.0.6