summaryrefslogtreecommitdiffstats
path: root/arch/riscv/include
diff options
context:
space:
mode:
authorPeter Collingbourne <pcc@google.com>2021-09-14 00:24:47 +0200
committerArnd Bergmann <arnd@arndb.de>2021-09-14 16:06:20 +0200
commit7962c2eddbfe7cce879acb06f9b4f205789e57b7 (patch)
tree730803f821783aa05bc69ed02ca8522305447560 /arch/riscv/include
parentLinux 5.15-rc1 (diff)
downloadlinux-7962c2eddbfe7cce879acb06f9b4f205789e57b7.tar.xz
linux-7962c2eddbfe7cce879acb06f9b4f205789e57b7.zip
arch: remove unused function syscall_set_arguments()
This function appears to have been unused since it was first introduced in commit 828c365cc8b8 ("tracehook: asm/syscall.h"). Signed-off-by: Peter Collingbourne <pcc@google.com> Link: https://linux-review.googlesource.com/id/I8ce04f002903a37c0b6c1d16e9b2a3afa716c097 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/riscv/include')
-rw-r--r--arch/riscv/include/asm/syscall.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/riscv/include/asm/syscall.h b/arch/riscv/include/asm/syscall.h
index b933b1583c9f..f8686ac98235 100644
--- a/arch/riscv/include/asm/syscall.h
+++ b/arch/riscv/include/asm/syscall.h
@@ -64,15 +64,6 @@ static inline void syscall_get_arguments(struct task_struct *task,
memcpy(args, &regs->a1, 5 * sizeof(args[0]));
}
-static inline void syscall_set_arguments(struct task_struct *task,
- struct pt_regs *regs,
- const unsigned long *args)
-{
- regs->orig_a0 = args[0];
- args++;
- memcpy(&regs->a1, args, 5 * sizeof(regs->a1));
-}
-
static inline int syscall_get_arch(struct task_struct *task)
{
#ifdef CONFIG_64BIT