Yonghong Song | 6bf3bbe | 2019-01-12 15:04:30 -0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* Copyright (c) 2019 Facebook */ |
| 3 | #ifndef __ASM_GOTO_WORKAROUND_H |
| 4 | #define __ASM_GOTO_WORKAROUND_H |
| 5 | |
| 6 | /* this will bring in asm_volatile_goto macro definition |
| 7 | * if enabled by compiler and config options. |
| 8 | */ |
| 9 | #include <linux/types.h> |
| 10 | |
| 11 | #ifdef asm_volatile_goto |
| 12 | #undef asm_volatile_goto |
| 13 | #define asm_volatile_goto(x...) asm volatile("invalid use of asm_volatile_goto") |
| 14 | #endif |
| 15 | |
Alexei Starovoitov | 636e78b | 2019-04-04 14:37:14 -0700 | [diff] [blame] | 16 | #define volatile(x...) volatile("") |
Yonghong Song | 6bf3bbe | 2019-01-12 15:04:30 -0800 | [diff] [blame] | 17 | #endif |