]> asedeno.scripts.mit.edu Git - linux.git/commit
ftrace: Hide cached module code for !CONFIG_MODULES
authorArnd Bergmann <arnd@arndb.de>
Mon, 10 Jul 2017 08:44:03 +0000 (10:44 +0200)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 11 Jul 2017 23:29:04 +0000 (19:29 -0400)
commit69449bbd65687e8e5fb968a5a0c46089f6af6001
tree6ea92add031fd9d72e7b13bb5cfcc03a0ecdd716
parentbbd1d27d863d5c0acee65ecd0c2e34035e1df5ea
ftrace: Hide cached module code for !CONFIG_MODULES

When modules are disabled, we get a harmless build warning:

kernel/trace/ftrace.c:4051:13: error: 'process_cached_mods' defined but not used [-Werror=unused-function]

This adds the same #ifdef around the new code that exists around
its caller.

Link: http://lkml.kernel.org/r/20170710084413.1820568-1-arnd@arndb.de
Fixes: d7fbf8df7ca0 ("ftrace: Implement cached modules tracing on module load")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c