diff options
Diffstat (limited to 'include/linux/compiler.h')
| -rw-r--r-- | include/linux/compiler.h | 5 |
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" \ |
