Skip to content

Commit

Permalink
profiling: fix !procfs build
Browse files Browse the repository at this point in the history
fix:

 kernel/built-in.o: In function `profiling_store':
 ksysfs.c:(.text+0x1f90c): undefined reference to `create_proc_profile'

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Oct 17, 2008
1 parent 52f4f32 commit 8cf7d36
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/linux/profile.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@ extern int prof_on __read_mostly;
/* init basic kernel profiler */
int profile_init(void);
int profile_setup(char *str);
#ifdef CONFIG_PROC_FS
int create_proc_profile(void);
#else
static inline int create_proc_profile(void)
{
return 0;
}
#endif
void profile_tick(int type);

/*
Expand Down

0 comments on commit 8cf7d36

Please sign in to comment.