diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2022-09-08 14:54:57 -0700 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-09-26 10:13:15 -0700 |
commit | 5659b598b4dcb352b1a567c55fc5a658bc80076c (patch) | |
tree | 9e941833141547dc995c3008b9e3cffeae756681 /include/linux/compiler_types.h | |
parent | 4b24356312fbe1bace72f9905d529b14fc34c1c3 (diff) | |
download | linux-5659b598b4dcb352b1a567c55fc5a658bc80076c.tar.gz linux-5659b598b4dcb352b1a567c55fc5a658bc80076c.tar.bz2 linux-5659b598b4dcb352b1a567c55fc5a658bc80076c.zip |
treewide: Drop __cficanonical
CONFIG_CFI_CLANG doesn't use a jump table anymore and therefore,
won't change function references to point elsewhere. Remove the
__cficanonical attribute and all uses of it.
Note that the Clang definition of the attribute was removed earlier,
just clean up the no-op definition and users.
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Tested-by: Kees Cook <keescook@chromium.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220908215504.3686827-16-samitolvanen@google.com
Diffstat (limited to 'include/linux/compiler_types.h')
-rw-r--r-- | include/linux/compiler_types.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h index 4f2a819fd60a..6f2ec0976e2d 100644 --- a/include/linux/compiler_types.h +++ b/include/linux/compiler_types.h @@ -265,10 +265,6 @@ struct ftrace_likely_data { # define __nocfi #endif -#ifndef __cficanonical -# define __cficanonical -#endif - /* * Any place that could be marked with the "alloc_size" attribute is also * a place to be marked with the "malloc" attribute. Do this as part of the |