Skip to contentSkip to conversation

sysctl extern cleanup - lockdep

PATCH In review Dave Young 1 participant 1 message Feb 20, 2010

Subsystems (2)
lore
Share & tools
lore

Dave Young

author
#0 lore raw

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

---
 include/linux/lockdep.h |    5 +++++
 kernel/sysctl.c         |    4 +---
 2 files changed, 6 insertions(+), 3 deletions(-)
include/linux/lockdep.h +5 -0
@@ -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
 
kernel/sysctl.c +1 -3
@@ -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[] = {