diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-12-27 11:08:31 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-04-17 15:18:36 -0400 |
commit | ce16076ae2aa9661915c0c44f822ed5a6178b8ee (patch) | |
tree | 3876aed22995d994536913047c2e9fa479b3e324 | |
parent | f443e374ae131c168a065ea1748feac6b2e76613 (diff) |
Compiler Attributes: add __flatten
Prep work for bcachefs
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-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 37e260020221..6a22668fa94a 100644 --- a/include/linux/compiler_attributes.h +++ b/include/linux/compiler_attributes.h @@ -332,4 +332,9 @@ */ #define __weak __attribute__((__weak__)) +/* + * gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-flatten-function-attribute + */ +#define __flatten __attribute__((flatten)) + #endif /* __LINUX_COMPILER_ATTRIBUTES_H */ |