Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

profiling: fix up CONFIG_PROC_FS=n build

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>

authored by

Paul Mundt and committed by
Linus Torvalds
66f50ee3 4c821042

+6 -1
+6 -1
include/linux/profile.h
··· 19 19 20 20 #if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS) 21 21 void create_prof_cpu_mask(struct proc_dir_entry *de); 22 + int create_proc_profile(void); 22 23 #else 23 24 static inline void create_prof_cpu_mask(struct proc_dir_entry *de) 24 25 { 26 + } 27 + 28 + static inline int create_proc_profile(void) 29 + { 30 + return 0; 25 31 } 26 32 #endif 27 33 ··· 43 37 /* init basic kernel profiler */ 44 38 int profile_init(void); 45 39 int profile_setup(char *str); 46 - int create_proc_profile(void); 47 40 void profile_tick(int type); 48 41 49 42 /*