diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-10-22 17:14:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-23 11:55:01 -0400 |
commit | 66f50ee3cee4c9d98eea0add6f439e6e5e0ca4a5 (patch) | |
tree | 63da8fe45ffdb90d57e013f863795413eb8fd90e | |
parent | 4c8210427bd1b7efa1dabf93f4d2312f29908d8f (diff) |
profiling: fix up CONFIG_PROC_FS=n build
In the case where procfs is disabled, create_proc_profile() does not
exist. Stub it in with the others.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | include/linux/profile.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/profile.h b/include/linux/profile.h index 570045053ce9..a0fc32279fc0 100644 --- a/include/linux/profile.h +++ b/include/linux/profile.h | |||
@@ -19,10 +19,16 @@ struct notifier_block; | |||
19 | 19 | ||
20 | #if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS) | 20 | #if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS) |
21 | void create_prof_cpu_mask(struct proc_dir_entry *de); | 21 | void create_prof_cpu_mask(struct proc_dir_entry *de); |
22 | int create_proc_profile(void); | ||
22 | #else | 23 | #else |
23 | static inline void create_prof_cpu_mask(struct proc_dir_entry *de) | 24 | static inline void create_prof_cpu_mask(struct proc_dir_entry *de) |
24 | { | 25 | { |
25 | } | 26 | } |
27 | |||
28 | static inline int create_proc_profile(void) | ||
29 | { | ||
30 | return 0; | ||
31 | } | ||
26 | #endif | 32 | #endif |
27 | 33 | ||
28 | enum profile_type { | 34 | enum profile_type { |
@@ -37,7 +43,6 @@ extern int prof_on __read_mostly; | |||
37 | /* init basic kernel profiler */ | 43 | /* init basic kernel profiler */ |
38 | int profile_init(void); | 44 | int profile_init(void); |
39 | int profile_setup(char *str); | 45 | int profile_setup(char *str); |
40 | int create_proc_profile(void); | ||
41 | void profile_tick(int type); | 46 | void profile_tick(int type); |
42 | 47 | ||
43 | /* | 48 | /* |