aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r--include/linux/compiler.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index 202710420d6d..f8734fca54ce 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -187,6 +187,11 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val,
187 187
188/* Unreachable code */ 188/* Unreachable code */
189#ifdef CONFIG_STACK_VALIDATION 189#ifdef CONFIG_STACK_VALIDATION
190/*
191 * These macros help objtool understand GCC code flow for unreachable code.
192 * The __COUNTER__ based labels are a hack to make each instance of the macros
193 * unique, to convince GCC not to merge duplicate inline asm statements.
194 */
190#define annotate_reachable() ({ \ 195#define annotate_reachable() ({ \
191 asm("%c0:\n\t" \ 196 asm("%c0:\n\t" \
192 ".pushsection .discard.reachable\n\t" \ 197 ".pushsection .discard.reachable\n\t" \