From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757164AbZCXJAF (ORCPT ); Tue, 24 Mar 2009 05:00:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754493AbZCXI7r (ORCPT ); Tue, 24 Mar 2009 04:59:47 -0400 Received: from hera.kernel.org ([140.211.167.34]:38745 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754192AbZCXI7q (ORCPT ); Tue, 24 Mar 2009 04:59:46 -0400 Subject: [PATCH -tip] mutex: fix compilation warning From: Jaswinder Singh Rajput To: Ingo Molnar , x86 maintainers , LKML Content-Type: text/plain; charset="UTF-8" Date: Tue, 24 Mar 2009 14:29:21 +0530 Message-Id: <1237885161.5477.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.24.4 (2.24.4-1.fc10) Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jaswinder Singh Rajput 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 --- 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