Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sysctl extern cleanup: rtmutex

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

Move max_lock_depth extern declaration to linux/rtmutex.h

Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Dave Young and committed by
Linus Torvalds
4f0e056f c55b7c3e

+5 -4
+2
include/linux/rtmutex.h
··· 16 16 #include <linux/plist.h> 17 17 #include <linux/spinlock_types.h> 18 18 19 + extern int max_lock_depth; /* for sysctl */ 20 + 19 21 /** 20 22 * The rt_mutex structure 21 23 *
+3 -4
kernel/sysctl.c
··· 64 64 #ifdef CONFIG_BSD_PROCESS_ACCT 65 65 #include <linux/acct.h> 66 66 #endif 67 + #ifdef CONFIG_RT_MUTEXES 68 + #include <linux/rtmutex.h> 69 + #endif 67 70 #ifdef CONFIG_CHR_DEV_SG 68 71 #include <scsi/sg.h> 69 72 #endif ··· 152 149 #endif 153 150 154 151 extern struct ratelimit_state printk_ratelimit_state; 155 - 156 - #ifdef CONFIG_RT_MUTEXES 157 - extern int max_lock_depth; 158 - #endif 159 152 160 153 #ifdef CONFIG_PROC_SYSCTL 161 154 static int proc_do_cad_pid(struct ctl_table *table, int write,