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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Sat, 20 Feb 2010 22:21:23 +0800
From:	Dave Young <hidave.darkstar@...il.com>
To:	Peter Zijlstra <peterz@...radead.org>,
	Ingo Molnar <mingo@...hat.com>,
	Ming Lei <tom.leiming@...il.com>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Joel Becker <joel.becker@...cle.com>,
	James Morris <jmorris@...ei.org>,
	"Eric W. Biederman" <ebiederm@...ssion.com>,
	linux-kernel@...r.kernel.org
Subject: [PATCH 16/18] sysctl extern cleanup - lockdep

Extern declarations in sysctl.c should be move to their own head file,
and then include them in relavant .c files.

Move lockdep extern declarations to linux/lockdep.h

Signed-off-by: Dave Young <hidave.darkstar@...il.com>
---
 include/linux/lockdep.h |    5 +++++
 kernel/sysctl.c         |    4 +---
 2 files changed, 6 insertions(+), 3 deletions(-)

--- linux-2.6.32.orig/include/linux/lockdep.h	2010-02-20 14:02:16.481592295 +0800
+++ linux-2.6.32/include/linux/lockdep.h	2010-02-20 14:42:48.091351691 +0800
@@ -11,6 +11,11 @@
 
 struct task_struct;
 struct lockdep_map;
+#ifdef CONFIG_SYSCTL
+extern int prove_locking;
+extern int lock_stat;
+#endif
+
 
 #ifdef CONFIG_LOCKDEP
 
--- linux-2.6.32.orig/kernel/sysctl.c	2010-02-20 14:40:24.232197892 +0800
+++ linux-2.6.32/kernel/sysctl.c	2010-02-20 14:41:41.625522844 +0800
@@ -64,6 +64,7 @@
 #include <linux/blk-iopoll.h>
 #include <linux/acct.h>
 #include <linux/rtmutex.h>
+#include <linux/lockdep.h>
 #include <scsi/sg.h>
 
 #include <asm/uaccess.h>
@@ -165,9 +166,6 @@ extern struct ctl_table inotify_table[];
 extern struct ctl_table epoll_table[];
 #endif
 
-extern int prove_locking;
-extern int lock_stat;
-
 /* The default sysctl tables: */
 
 static struct ctl_table root_table[] = {
--
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