Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
29 lines
715 B
C
29 lines
715 B
C
/* 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_goto_output and asm_inline macro definitions
|
|
* if enabled by compiler and config options.
|
|
*/
|
|
#include <linux/types.h>
|
|
|
|
#ifdef asm_goto_output
|
|
#undef asm_goto_output
|
|
#define asm_goto_output(x...) asm volatile("invalid use of asm_goto_output")
|
|
#endif
|
|
|
|
/*
|
|
* asm_inline is defined as asm __inline in "include/linux/compiler_types.h"
|
|
* if supported by the kernel's CC (i.e CONFIG_CC_HAS_ASM_INLINE) which is not
|
|
* supported by CLANG.
|
|
*/
|
|
#ifdef asm_inline
|
|
#undef asm_inline
|
|
#define asm_inline asm
|
|
#endif
|
|
|
|
#define volatile(x...) volatile("")
|
|
#endif
|