aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-11-07 04:48:05 -0500
committerIngo Molnar <mingo@kernel.org>2017-11-07 04:48:05 -0500
commit783711f0d2458ca1bd716000e767c478cef27144 (patch)
tree0aebe2cfc09cbfa9a18e6a5e8d002489745f45a8 /include/linux/compiler.h
parent6a93bb7e4a7d6670677d5b0eb980936eb9cc5d2e (diff)
parente4880bc5dfb1f02b152e62a894b5c6f3e995b3cf (diff)
Merge branch 'linus' into core/objtool, to pick up dependent fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
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 e95a2631e545..202710420d6d 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
@@ -190,13 +191,13 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val,
190 asm("%c0:\n\t" \ 191 asm("%c0:\n\t" \
191 ".pushsection .discard.reachable\n\t" \ 192 ".pushsection .discard.reachable\n\t" \
192 ".long %c0b - .\n\t" \ 193 ".long %c0b - .\n\t" \
193 ".popsection\n\t" : : "i" (__LINE__)); \ 194 ".popsection\n\t" : : "i" (__COUNTER__)); \
194}) 195})
195#define annotate_unreachable() ({ \ 196#define annotate_unreachable() ({ \
196 asm("%c0:\n\t" \ 197 asm("%c0:\n\t" \
197 ".pushsection .discard.unreachable\n\t" \ 198 ".pushsection .discard.unreachable\n\t" \
198 ".long %c0b - .\n\t" \ 199 ".long %c0b - .\n\t" \
199 ".popsection\n\t" : : "i" (__LINE__)); \ 200 ".popsection\n\t" : : "i" (__COUNTER__)); \
200}) 201})
201#define ASM_UNREACHABLE \ 202#define ASM_UNREACHABLE \
202 "999:\n\t" \ 203 "999:\n\t" \