]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
syscall.h: Remove unused SYSCALL_MAX_ARGS
authorJinjie Ruan <ruanjinjie@huawei.com>
Mon, 1 Dec 2025 12:06:32 +0000 (20:06 +0800)
committerWill Deacon <will@kernel.org>
Mon, 5 Jan 2026 16:47:48 +0000 (16:47 +0000)
The "SYSCALL_MAX_ARGS" appears to have been unused since
commit 32d92586629a ("syscalls: Remove start and number from
syscall_set_arguments() args"), so remove it.

Fixes: 32d92586629a ("syscalls: Remove start and number from syscall_set_arguments() args")
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm/include/asm/syscall.h
arch/arm64/include/asm/syscall.h
arch/xtensa/include/asm/syscall.h

index 18b102a3074199fa4e79d066fc02a6eec31246cf..574bbcc55382b444486095774c2dcdeceba4e3ca 100644 (file)
@@ -92,8 +92,6 @@ static inline void syscall_set_nr(struct task_struct *task,
                (nr & __NR_SYSCALL_MASK);
 }
 
-#define SYSCALL_MAX_ARGS 7
-
 static inline void syscall_get_arguments(struct task_struct *task,
                                         struct pt_regs *regs,
                                         unsigned long *args)
index 712daa90e6431df303911e38dfc845edd74e43df..f3853047c28e0ee0b551be0aa8e0e3e179fb433a 100644 (file)
@@ -77,8 +77,6 @@ static inline void syscall_set_nr(struct task_struct *task,
        }
 }
 
-#define SYSCALL_MAX_ARGS 6
-
 static inline void syscall_get_arguments(struct task_struct *task,
                                         struct pt_regs *regs,
                                         unsigned long *args)
index 7db3b489c8ad08189fb5842e3f22eaeeaa1cbe15..bab7cdd96cbe999ef0013afee72dfe5b92eed658 100644 (file)
@@ -61,7 +61,6 @@ static inline void syscall_set_return_value(struct task_struct *task,
        regs->areg[2] = (long) error ? error : val;
 }
 
-#define SYSCALL_MAX_ARGS 6
 #define XTENSA_SYSCALL_ARGUMENT_REGS {6, 3, 4, 5, 8, 9}
 
 static inline void syscall_get_arguments(struct task_struct *task,