summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-10-17 11:25:23 +0200
committerIngo Molnar <mingo@elte.hu>2008-10-17 11:20:59 +0200
commit8cf7d362c0dc2cfda2146d184eedc32a530c8020 (patch)
treeecde843276dd949b94437b7a3dbbee981c6d2cfc
parent52f4f324c727e77507ae0490b08fc92e140ba57d (diff)
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 <mingo@elte.hu>
-rw-r--r--include/linux/profile.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/profile.h b/include/linux/profile.h
index 570045053ce9..e3eca8577a38 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);
/*