mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-31 08:28:13 +00:00
f94909ceb1
Replace all ret/retq instructions with RET in preparation of making RET a macro. Since AS is case insensitive it's a big no-op without RET defined. find arch/x86/ -name \*.S | while read file do sed -i 's/\<ret[q]*\>/RET/' $file done Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lore.kernel.org/r/20211204134907.905503893@infradead.org
17 lines
319 B
ArmAsm
17 lines
319 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#include <asm/asm.h>
|
|
#include <asm/export.h>
|
|
#include <linux/linkage.h>
|
|
|
|
/*
|
|
* unsigned long native_save_fl(void)
|
|
*/
|
|
.pushsection .noinstr.text, "ax"
|
|
SYM_FUNC_START(native_save_fl)
|
|
pushf
|
|
pop %_ASM_AX
|
|
RET
|
|
SYM_FUNC_END(native_save_fl)
|
|
.popsection
|
|
EXPORT_SYMBOL(native_save_fl)
|