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>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 23 Mar 2011 13:48:44 GMT
From:	tip-bot for Sergey Senozhatsky <sergey.senozhatsky@...il.com>
To:	linux-tip-commits@...r.kernel.org
Cc:	linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
	peterz@...radead.org, sergey.senozhatsky@...il.com,
	tglx@...utronix.de, mingo@...e.hu
Subject: [tip:core/urgent] lockdep: Remove unused 'factor' variable from lockdep_stats_show()

Commit-ID:  dec2960827c85253d76938dbfa909df3be34958b
Gitweb:     http://git.kernel.org/tip/dec2960827c85253d76938dbfa909df3be34958b
Author:     Sergey Senozhatsky <sergey.senozhatsky@...il.com>
AuthorDate: Wed, 23 Mar 2011 14:38:28 +0200
Committer:  Ingo Molnar <mingo@...e.hu>
CommitDate: Wed, 23 Mar 2011 13:54:47 +0100

lockdep: Remove unused 'factor' variable from lockdep_stats_show()

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@...il.com>
Cc: Peter Zijlstra <peterz@...radead.org>
LKML-Reference: <20110323123828.GB4244@...rdfish.minsk.epam.com>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
 kernel/lockdep_proc.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/kernel/lockdep_proc.c b/kernel/lockdep_proc.c
index 1969d2f..71edd2f 100644
--- a/kernel/lockdep_proc.c
+++ b/kernel/lockdep_proc.c
@@ -225,7 +225,7 @@ static int lockdep_stats_show(struct seq_file *m, void *v)
 		      nr_irq_read_safe = 0, nr_irq_read_unsafe = 0,
 		      nr_softirq_read_safe = 0, nr_softirq_read_unsafe = 0,
 		      nr_hardirq_read_safe = 0, nr_hardirq_read_unsafe = 0,
-		      sum_forward_deps = 0, factor = 0;
+		      sum_forward_deps = 0;
 
 	list_for_each_entry(class, &all_lock_classes, lock_entry) {
 
@@ -283,13 +283,6 @@ static int lockdep_stats_show(struct seq_file *m, void *v)
 			nr_hardirq_unsafe * nr_hardirq_safe +
 			nr_list_entries);
 
-	/*
-	 * Estimated factor between direct and indirect
-	 * dependencies:
-	 */
-	if (nr_list_entries)
-		factor = sum_forward_deps / nr_list_entries;
-
 #ifdef CONFIG_PROVE_LOCKING
 	seq_printf(m, " dependency chains:             %11lu [max: %lu]\n",
 			nr_lock_chains, MAX_LOCKDEP_CHAINS);
--
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