summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-12-27 11:08:31 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2020-05-06 17:14:13 -0400
commit861f5a04884f9d6564c94c7359dd0076e1953fea (patch)
tree5e2810f742ac397a24068689be47da5005224704
parent84920cc7fbe10e838689e8e1437dfd18d6e54a2c (diff)
Compiler Attributes: add __flatten
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-rw-r--r--include/linux/compiler_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h
index 2b8ed70c4c77..93642d291560 100644
--- a/include/linux/compiler_types.h
+++ b/include/linux/compiler_types.h
@@ -284,6 +284,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.