mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 17:11:33 +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
18 lines
319 B
ArmAsm
18 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)
|