From ccbc4e1a399470ef18741c6f97d963ea8fef45b0 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 27 Dec 2018 11:08:31 -0500 Subject: Compiler Attributes: add __flatten Prep work for bcachefs Signed-off-by: Kent Overstreet --- 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 445e80517cab..57e7d0b94119 100644 --- a/include/linux/compiler_attributes.h +++ b/include/linux/compiler_attributes.h @@ -371,4 +371,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 */ -- cgit v1.2.3