X-Git-Url: https://repo.jachan.dev/linux.git/blobdiff_plain/e64d4687730cf47bd0c59e9ed76b52ca0c0f44c0..00fec2a10b51a071ec92da256ccd30f6b13fc55b:/include/linux/compiler.h diff --git a/include/linux/compiler.h b/include/linux/compiler.h index 64fdfe1cfcf0..d5ad7b1118fc 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -383,7 +383,9 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect); /* Ignore/forbid kprobes attach on very low level functions marked by this attribute: */ #ifdef CONFIG_KPROBES # define __kprobes __attribute__((__section__(".kprobes.text"))) +# define nokprobe_inline __always_inline #else # define __kprobes +# define nokprobe_inline inline #endif #endif /* __LINUX_COMPILER_H */