Linux 5.1.15
[linux/fpc-iii.git] / samples / bpf / asm_goto_workaround.h
blob7409722727ca16fcffa9c7bc5fe03f6a749cc4bf
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (c) 2019 Facebook */
3 #ifndef __ASM_GOTO_WORKAROUND_H
4 #define __ASM_GOTO_WORKAROUND_H
6 /* this will bring in asm_volatile_goto macro definition
7 * if enabled by compiler and config options.
8 */
9 #include <linux/types.h>
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
16 #define volatile(x...) volatile("")
17 #endif