diff options
| author | Will Deacon <[email protected]> | 2017-06-12 14:43:25 +0100 |
|---|---|---|
| committer | Will Deacon <[email protected]> | 2017-06-12 14:43:25 +0100 |
| commit | 687644209a6e95576ea453977b26dbd6248cadda (patch) | |
| tree | 4be4a28254ff555edd52585f9b642311aad1cda0 /tools/lib/api/fs/tracing_path.c | |
| parent | 1eb34b6e5160f20e1889b2551182bf4d61084d6b (diff) | |
arm64: ftrace: fix building without CONFIG_MODULES
When CONFIG_MODULES is disabled, we cannot dereference a module pointer:
arch/arm64/kernel/ftrace.c: In function 'ftrace_make_call':
arch/arm64/kernel/ftrace.c:107:36: error: dereferencing pointer to incomplete type 'struct module'
trampoline = (unsigned long *)mod->arch.ftrace_trampoline;
Also, the within_module() function is not defined:
arch/arm64/kernel/ftrace.c: In function 'ftrace_make_nop':
arch/arm64/kernel/ftrace.c:171:8: error: implicit declaration of function 'within_module'; did you mean 'init_module'? [-Werror=implicit-function-declaration]
This addresses both by adding replacing the IS_ENABLED(CONFIG_ARM64_MODULE_PLTS)
checks with #ifdef versions.
Fixes: e71a4e1bebaf ("arm64: ftrace: add support for far branches to dynamic ftrace")
Reported-by: Arnd Bergmann <[email protected]>
Acked-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/lib/api/fs/tracing_path.c')
0 files changed, 0 insertions, 0 deletions