From: Ingo Molnar Date: Fri, 17 Oct 2008 09:25:23 +0000 (+0200) Subject: profiling: fix !procfs build X-Git-Tag: v2.6.28-rc1~42^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8cf7d362c0dc2cfda2146d184eedc32a530c8020;p=linux-2.6-omap-h63xx.git profiling: fix !procfs build fix: kernel/built-in.o: In function `profiling_store': ksysfs.c:(.text+0x1f90c): undefined reference to `create_proc_profile' Signed-off-by: Ingo Molnar --- diff --git a/include/linux/profile.h b/include/linux/profile.h index 570045053ce..e3eca8577a3 100644 --- a/include/linux/profile.h +++ b/include/linux/profile.h @@ -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); /*