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

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: Rob Landley <rob@landley.net>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Heiko Carstens and committed by
Martin Schwidefsky
085b6ba0 07a63cbe

+4
+4
arch/s390/kernel/ftrace.c
··· 172 172 return 0; 173 173 } 174 174 175 + #ifdef CONFIG_MODULES 176 + 175 177 static int __init ftrace_plt_init(void) 176 178 { 177 179 unsigned int *ip; ··· 191 189 return 0; 192 190 } 193 191 device_initcall(ftrace_plt_init); 192 + 193 + #endif /* CONFIG_MODULES */ 194 194 195 195 #ifdef CONFIG_FUNCTION_GRAPH_TRACER 196 196 /*