Messages in this thread Patch in this message | | | From | Kent Overstreet <> | Subject | [PATCH 01/12] Compiler Attributes: add __flatten | Date | Mon, 10 Jun 2019 15:14:09 -0400 |
| |
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> --- include/linux/compiler_attributes.h | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/include/linux/compiler_attributes.h b/include/linux/compiler_attributes.h index 6b318efd8a..48b2c6ae6f 100644 --- a/include/linux/compiler_attributes.h +++ b/include/linux/compiler_attributes.h @@ -253,4 +253,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 */ -- 2.20.1
| |