Skip to content

Commit

Permalink
profiling: fix up CONFIG_PROC_FS=n build
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt authored and Linus Torvalds committed Oct 23, 2008
1 parent 4c82104 commit 66f50ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/linux/profile.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,16 @@ struct notifier_block;

#if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS)
void create_prof_cpu_mask(struct proc_dir_entry *de);
int create_proc_profile(void);
#else
static inline void create_prof_cpu_mask(struct proc_dir_entry *de)
{
}

static inline int create_proc_profile(void)
{
return 0;
}
#endif

enum profile_type {
Expand All @@ -37,7 +43,6 @@ extern int prof_on __read_mostly;
/* init basic kernel profiler */
int profile_init(void);
int profile_setup(char *str);
int create_proc_profile(void);
void profile_tick(int type);

/*
Expand Down

0 comments on commit 66f50ee

Please sign in to comment.