From: Sven Schnelle Date: Wed, 5 Jun 2019 20:32:21 +0000 (+0200) Subject: compiler.h: add CC_USING_PATCHABLE_FUNCTION_ENTRY X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2809b392a62ae307da058a52d451b2fc3ce4de7e;p=openwrt%2Fstaging%2Fblogic.git compiler.h: add CC_USING_PATCHABLE_FUNCTION_ENTRY This can be used for architectures implementing dynamic ftrace via -fpatchable-function-entry. Signed-off-by: Sven Schnelle Signed-off-by: Helge Deller --- diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h index 19e58b9138a0..095d55c3834d 100644 --- a/include/linux/compiler_types.h +++ b/include/linux/compiler_types.h @@ -112,6 +112,8 @@ struct ftrace_likely_data { #if defined(CC_USING_HOTPATCH) #define notrace __attribute__((hotpatch(0, 0))) +#elif defined(CC_USING_PATCHABLE_FUNCTION_ENTRY) +#define notrace __attribute__((patchable_function_entry(0, 0))) #else #define notrace __attribute__((__no_instrument_function__)) #endif