mutex: fix compilation warning
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.oinclude/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
Signed-off-by Jaswinder Singh Rajput <[email protected]>
--- include/linux/mutex.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/mutex.h +1 -1
@@ -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