Merge branch 'x86-paravirt-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git] / samples / bpf / asm_goto_workaround.h
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
16 #define volatile(x...) volatile("")
17 #endif