diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2021-09-13 09:12:52 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2021-12-21 23:22:19 +0300 |
commit | 077b7320942b64b0da182aefd83c374462a65535 (patch) | |
tree | 6d5aef68d6b77d087a94306a35206c90806ecb63 /arch/x86/um/syscalls_64.c | |
parent | 8bd18ef9eaac2e812b42da9eb19b2d59293aa25b (diff) | |
download | linux-077b7320942b64b0da182aefd83c374462a65535.tar.xz |
um: registers: Rename function names to avoid conflicts and build problems
The function names init_registers() and restore_registers() are used
in several net/ethernet/ and gpu/drm/ drivers for other purposes (not
calls to UML functions), so rename them.
This fixes multiple build errors.
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Cc: linux-um@lists.infradead.org
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/x86/um/syscalls_64.c')
-rw-r--r-- | arch/x86/um/syscalls_64.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/um/syscalls_64.c b/arch/x86/um/syscalls_64.c index 58f51667e2e4..8249685b4096 100644 --- a/arch/x86/um/syscalls_64.c +++ b/arch/x86/um/syscalls_64.c @@ -11,6 +11,7 @@ #include <linux/uaccess.h> #include <asm/prctl.h> /* XXX This should get the constants from libc */ #include <os.h> +#include <registers.h> long arch_prctl(struct task_struct *task, int option, unsigned long __user *arg2) @@ -35,7 +36,7 @@ long arch_prctl(struct task_struct *task, int option, switch (option) { case ARCH_SET_FS: case ARCH_SET_GS: - ret = restore_registers(pid, ¤t->thread.regs.regs); + ret = restore_pid_registers(pid, ¤t->thread.regs.regs); if (ret) return ret; break; |