Commit 66f50ee3 authored by Paul Mundt's avatar Paul Mundt Committed by Linus Torvalds

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: default avatarPaul Mundt <lethal@linux-sh.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4c821042
...@@ -19,10 +19,16 @@ struct notifier_block; ...@@ -19,10 +19,16 @@ struct notifier_block;
#if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS) #if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS)
void create_prof_cpu_mask(struct proc_dir_entry *de); void create_prof_cpu_mask(struct proc_dir_entry *de);
int create_proc_profile(void);
#else #else
static inline void create_prof_cpu_mask(struct proc_dir_entry *de) static inline void create_prof_cpu_mask(struct proc_dir_entry *de)
{ {
} }
static inline int create_proc_profile(void)
{
return 0;
}
#endif #endif
enum profile_type { enum profile_type {
...@@ -37,7 +43,6 @@ extern int prof_on __read_mostly; ...@@ -37,7 +43,6 @@ extern int prof_on __read_mostly;
/* init basic kernel profiler */ /* init basic kernel profiler */
int profile_init(void); int profile_init(void);
int profile_setup(char *str); int profile_setup(char *str);
int create_proc_profile(void);
void profile_tick(int type); void profile_tick(int type);
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment