projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52f4f32
)
profiling: fix !procfs build
author
Ingo Molnar
<mingo@elte.hu>
Fri, 17 Oct 2008 09:25:23 +0000
(11:25 +0200)
committer
Ingo Molnar
<mingo@elte.hu>
Fri, 17 Oct 2008 09:20:59 +0000
(11:20 +0200)
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>
include/linux/profile.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/profile.h
b/include/linux/profile.h
index 570045053ce9bf04bbda46d21a97feb3b76dadb2..e3eca8577a389b56e08887e1da359b3282112a28 100644
(file)
--- 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);
/*