[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1237885161.5477.1.camel@localhost.localdomain>
Date: Tue, 24 Mar 2009 14:29:21 +0530
From: Jaswinder Singh Rajput <jaswinder@...nel.org>
To: Ingo Molnar <mingo@...e.hu>, x86 maintainers <x86@...nel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH -tip] mutex: fix compilation warning
From: Jaswinder Singh Rajput <jaswinderrajput@...il.com>
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
Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@...il.com>
---
include/linux/mutex.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/mutex.h b/include/linux/mutex.h
index 93054fc..c8c384c 100644
--- a/include/linux/mutex.h
+++ b/include/linux/mutex.h
@@ -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);
--
1.6.0.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists