Commit 085b6ba0 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky

s390/ftrace: fix compile for !MODULES

Fix this compile error if CONFIG_MODULES is disabled:

arch/s390/built-in.o: In function `ftrace_plt_init':
arch/s390/kernel/ftrace.o:(.init.text+0x34cc): undefined reference to `module_alloc'
Reported-by: default avatarRob Landley <rob@landley.net>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 07a63cbe
...@@ -172,6 +172,8 @@ int __init ftrace_dyn_arch_init(void) ...@@ -172,6 +172,8 @@ int __init ftrace_dyn_arch_init(void)
return 0; return 0;
} }
#ifdef CONFIG_MODULES
static int __init ftrace_plt_init(void) static int __init ftrace_plt_init(void)
{ {
unsigned int *ip; unsigned int *ip;
...@@ -190,6 +192,8 @@ static int __init ftrace_plt_init(void) ...@@ -190,6 +192,8 @@ static int __init ftrace_plt_init(void)
} }
device_initcall(ftrace_plt_init); device_initcall(ftrace_plt_init);
#endif /* CONFIG_MODULES */
#ifdef CONFIG_FUNCTION_GRAPH_TRACER #ifdef CONFIG_FUNCTION_GRAPH_TRACER
/* /*
* Hook the return address and push it in the stack of return addresses * Hook the return address and push it in the stack of return addresses
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment