summaryrefslogtreecommitdiff
path: root/samples/bpf/asm_goto_workaround.h
blob: 7409722727ca16fcffa9c7bc5fe03f6a749cc4bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (c) 2019 Facebook */
#ifndef __ASM_GOTO_WORKAROUND_H
#define __ASM_GOTO_WORKAROUND_H

/* this will bring in asm_volatile_goto macro definition
 * if enabled by compiler and config options.
 */
#include <linux/types.h>

#ifdef asm_volatile_goto
#undef asm_volatile_goto
#define asm_volatile_goto(x...) asm volatile("invalid use of asm_volatile_goto")
#endif

#define volatile(x...) volatile("")
#endif