* [PATCH] profiling: Fix up CONFIG_PROC_FS=n build.
@ 2008-10-21 11:19 Paul Mundt
0 siblings, 0 replies; only message in thread
From: Paul Mundt @ 2008-10-21 11:19 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
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>
---
include/linux/profile.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/linux/profile.h b/include/linux/profile.h
index 5700450..a0fc322 100644
--- a/include/linux/profile.h
+++ b/include/linux/profile.h
@@ -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 {
@@ -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);
/*
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-21 11:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-21 11:19 [PATCH] profiling: Fix up CONFIG_PROC_FS=n build Paul Mundt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox