diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-12-27 11:08:31 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-12-27 11:15:24 -0500 |
commit | b0907d76562581a45873abda7fb45a1f6ab5b039 (patch) | |
tree | 69c49d4c14757459a4582d91f6d39f8781beff21 /include | |
parent | 84df9525b0c27f3ebc2ebb1864fa62a97fdedb7d (diff) |
Compiler Attributes: add __flatten
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/compiler_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h index db192becfec4..fe08a6744849 100644 --- a/include/linux/compiler_types.h +++ b/include/linux/compiler_types.h @@ -276,6 +276,10 @@ struct ftrace_likely_data { #define __always_inline inline __attribute__((always_inline)) #endif +#ifndef __flatten +#define __flatten __attribute__((flatten)) +#endif + /* * Rather then using noinline to prevent stack consumption, use * noinline_for_stack instead. For documentation reasons. |