Received: from [140.186.70.92] (port=43160 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNsbg-0007dJ-Db for qemu-devel@nongnu.org; Wed, 01 Dec 2010 14:44:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNsbd-0004DS-WB for qemu-devel@nongnu.org; Wed, 01 Dec 2010 14:44:48 -0500 Received: from mnementh.archaic.org.uk ([81.2.115.146]:18935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNsbd-0004CJ-PL for qemu-devel@nongnu.org; Wed, 01 Dec 2010 14:44:45 -0500 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.69) (envelope-from ) id 1PNsbW-0008DO-GT for qemu-devel@nongnu.org; Wed, 01 Dec 2010 19:44:38 +0000 From: Peter Maydell Date: Wed, 1 Dec 2010 19:44:38 +0000 Message-Id: <1291232678-31556-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] Remove unused spin_trylock() function List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Remove the spin_trylock() function, as it is not used anywhere, and is not even implemented if CONFIG_USE_NPTL is defined. Signed-off-by: Peter Maydell --- qemu-lock.h | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/qemu-lock.h b/qemu-lock.h index 9a3e6ac..65ca084 100644 --- a/qemu-lock.h +++ b/qemu-lock.h @@ -224,11 +224,6 @@ static inline void spin_unlock(spinlock_t *lock) { resetlock(lock); } - -static inline int spin_trylock(spinlock_t *lock) -{ - return !testandset(lock); -} #else static inline void spin_lock(spinlock_t *lock) { @@ -237,11 +232,6 @@ static inline void spin_lock(spinlock_t *lock) static inline void spin_unlock(spinlock_t *lock) { } - -static inline int spin_trylock(spinlock_t *lock) -{ - return 1; -} #endif #endif -- 1.7.1