diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-12-27 11:08:31 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-04-26 11:47:11 -0400 |
commit | 3fcdf3c5eaa95d558502470c5f2912c40f91ef5c (patch) | |
tree | 0b9d83d31c85b63b75c6f8cc10ec62500879e4c3 | |
parent | 457391b0380335d5e9a5babdec90ac53928b23b4 (diff) |
Compiler Attributes: add __flatten
This makes __attribute__((flatten)) available, which is used by
bcachefs.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Cc: Miguel Ojeda <ojeda@kernel.org> (maintainer:COMPILER ATTRIBUTES)
Cc: Nick Desaulniers <ndesaulniers@google.com> (reviewer:COMPILER ATTRIBUTES)
-rw-r--r-- | include/linux/compiler_attributes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/compiler_attributes.h b/include/linux/compiler_attributes.h index e659cb6fded3..e56793bc08c5 100644 --- a/include/linux/compiler_attributes.h +++ b/include/linux/compiler_attributes.h @@ -366,4 +366,9 @@ */ #define __fix_address noinline __noclone +/* + * gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-flatten-function-attribute + */ +#define __flatten __attribute__((flatten)) + #endif /* __LINUX_COMPILER_ATTRIBUTES_H */ |