blob: 7409722727ca16fcffa9c7bc5fe03f6a749cc4bf [file] [log] [blame]
Yonghong Song6bf3bbe2019-01-12 15:04:30 -08001/* 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 Starovoitov636e78b2019-04-04 14:37:14 -070016#define volatile(x...) volatile("")
Yonghong Song6bf3bbe2019-01-12 15:04:30 -080017#endif