lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tip-0f14452563e342637f9a3a2f036cac7315081b2b@git.kernel.org>
Date:	Tue, 18 May 2010 14:48:43 GMT
From:	tip-bot for Andrew Morton <akpm@...ux-foundation.org>
To:	linux-tip-commits@...r.kernel.org
Cc:	linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
	a.p.zijlstra@...llo.nl, torvalds@...ux-foundation.org,
	benh@...nel.crashing.org, akpm@...ux-foundation.org,
	stable@...nel.org, tglx@...utronix.de, mingo@...e.hu
Subject: [tip:core/locking] kernel/mutex.c: Fix unused var warning

Commit-ID:  0f14452563e342637f9a3a2f036cac7315081b2b
Gitweb:     http://git.kernel.org/tip/0f14452563e342637f9a3a2f036cac7315081b2b
Author:     Andrew Morton <akpm@...ux-foundation.org>
AuthorDate: Fri, 14 May 2010 11:13:48 -0700
Committer:  Ingo Molnar <mingo@...e.hu>
CommitDate: Tue, 18 May 2010 16:46:03 +0200

kernel/mutex.c: Fix unused var warning

kernel/mutex.c: In function '__mutex_lock_common':
 kernel/mutex.c:148: warning: unused variable 'timeout'

Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Benjamin Herrenschmidt <benh@...nel.crashing.org>
Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc: <stable@...nel.org>
Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
LKML-Reference: <201005141841.o4EIfcl0015387@...p1.linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
 kernel/mutex.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/mutex.c b/kernel/mutex.c
index 7d4626b..b998c6e 100644
--- a/kernel/mutex.c
+++ b/kernel/mutex.c
@@ -145,7 +145,7 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass,
 	struct task_struct *task = current;
 	struct mutex_waiter waiter;
 	unsigned long flags;
-	unsigned long timeout;
+	unsigned long timeout __maybe_unused;
 
 	preempt_disable();
 	mutex_acquire(&lock->dep_map, subclass, 0, ip);
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ