summaryrefslogtreecommitdiff
path: root/arch/um
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2022-07-14 13:20:19 +0300
committerRichard Weinberger <richard@nod.at>2022-07-18 00:43:03 +0300
commit637285e7f8d6da70a70c64e7895cb0672357a1f7 (patch)
tree25d14379b5dbb0635a4c333b0608308f068725cf /arch/um
parentdda520d07b95072a0b63f6c52a8eb566d08ea897 (diff)
downloadlinux-637285e7f8d6da70a70c64e7895cb0672357a1f7.tar.xz
um: Add missing apply_returns()
Implement apply_returns() stub for UM, just like all the other patching routines. Fixes: 15e67227c49a ("x86: Undo return-thunk damage") Reported-by: Randy Dunlap <rdunlap@infradead.org) Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/kernel/um_arch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c
index 0760e24f2eba..9838967d0b2f 100644
--- a/arch/um/kernel/um_arch.c
+++ b/arch/um/kernel/um_arch.c
@@ -432,6 +432,10 @@ void apply_retpolines(s32 *start, s32 *end)
{
}
+void apply_returns(s32 *start, s32 *end)
+{
+}
+
void apply_alternatives(struct alt_instr *start, struct alt_instr *end)
{
}