Commit c55b7c3e82d0ad58f35a0785faaaf2f70b9b6cd3
Committed by
Linus Torvalds
1 parent
15485a4682
Exists in
master
and in
39 other branches
sysctl extern cleanup: acct
Extern declarations in sysctl.c should be moved to their own header file, and then include them in relavant .c files. Move acct_parm extern declaration to linux/acct.h Signed-off-by: Dave Young <hidave.darkstar@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 2 changed files with 4 additions and 4 deletions Side-by-side Diff
include/linux/acct.h
... | ... | @@ -121,6 +121,7 @@ |
121 | 121 | struct super_block; |
122 | 122 | struct pacct_struct; |
123 | 123 | struct pid_namespace; |
124 | +extern int acct_parm[]; /* for sysctl */ | |
124 | 125 | extern void acct_auto_close_mnt(struct vfsmount *m); |
125 | 126 | extern void acct_auto_close(struct super_block *sb); |
126 | 127 | extern void acct_collect(long exitcode, int group_dead); |
kernel/sysctl.c
... | ... | @@ -61,6 +61,9 @@ |
61 | 61 | #include <asm/stacktrace.h> |
62 | 62 | #include <asm/io.h> |
63 | 63 | #endif |
64 | +#ifdef CONFIG_BSD_PROCESS_ACCT | |
65 | +#include <linux/acct.h> | |
66 | +#endif | |
64 | 67 | #ifdef CONFIG_CHR_DEV_SG |
65 | 68 | #include <scsi/sg.h> |
66 | 69 | #endif |
... | ... | @@ -138,10 +141,6 @@ |
138 | 141 | #endif |
139 | 142 | extern int sysctl_userprocess_debug; |
140 | 143 | extern int spin_retry; |
141 | -#endif | |
142 | - | |
143 | -#ifdef CONFIG_BSD_PROCESS_ACCT | |
144 | -extern int acct_parm[]; | |
145 | 144 | #endif |
146 | 145 | |
147 | 146 | #ifdef CONFIG_IA64 |