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, 3 insertions, 2 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index 5a1cab48442c..3672353a0acd 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -1,3 +1,4 @@
1/* SPDX-License-Identifier: GPL-2.0 */
1#ifndef __LINUX_COMPILER_H 2#ifndef __LINUX_COMPILER_H
2#define __LINUX_COMPILER_H 3#define __LINUX_COMPILER_H
3 4
@@ -91,13 +92,13 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val,
91 asm("%c0:\n\t" \ 92 asm("%c0:\n\t" \
92 ".pushsection .discard.reachable\n\t" \ 93 ".pushsection .discard.reachable\n\t" \
93 ".long %c0b - .\n\t" \ 94 ".long %c0b - .\n\t" \
94 ".popsection\n\t" : : "i" (__LINE__)); \ 95 ".popsection\n\t" : : "i" (__COUNTER__)); \
95}) 96})
96#define annotate_unreachable() ({ \ 97#define annotate_unreachable() ({ \
97 asm("%c0:\n\t" \ 98 asm("%c0:\n\t" \
98 ".pushsection .discard.unreachable\n\t" \ 99 ".pushsection .discard.unreachable\n\t" \
99 ".long %c0b - .\n\t" \ 100 ".long %c0b - .\n\t" \
100 ".popsection\n\t" : : "i" (__LINE__)); \ 101 ".popsection\n\t" : : "i" (__COUNTER__)); \
101}) 102})
102#define ASM_UNREACHABLE \ 103#define ASM_UNREACHABLE \
103 "999:\n\t" \ 104 "999:\n\t" \