Skip to content

Commit 35c3dcb

Browse files
ruanjinjie-engwilldeacon
authored andcommitted
syscall.h: Remove unused SYSCALL_MAX_ARGS
The "SYSCALL_MAX_ARGS" appears to have been unused since commit 32d9258 ("syscalls: Remove start and number from syscall_set_arguments() args"), so remove it. Fixes: 32d9258 ("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>
1 parent 8f0b4cc commit 35c3dcb

3 files changed

Lines changed: 0 additions & 5 deletions

File tree

arch/arm/include/asm/syscall.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ static inline void syscall_set_nr(struct task_struct *task,
9292
(nr & __NR_SYSCALL_MASK);
9393
}
9494

95-
#define SYSCALL_MAX_ARGS 7
96-
9795
static inline void syscall_get_arguments(struct task_struct *task,
9896
struct pt_regs *regs,
9997
unsigned long *args)

arch/arm64/include/asm/syscall.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ static inline void syscall_set_nr(struct task_struct *task,
7777
}
7878
}
7979

80-
#define SYSCALL_MAX_ARGS 6
81-
8280
static inline void syscall_get_arguments(struct task_struct *task,
8381
struct pt_regs *regs,
8482
unsigned long *args)

arch/xtensa/include/asm/syscall.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ static inline void syscall_set_return_value(struct task_struct *task,
6161
regs->areg[2] = (long) error ? error : val;
6262
}
6363

64-
#define SYSCALL_MAX_ARGS 6
6564
#define XTENSA_SYSCALL_ARGUMENT_REGS {6, 3, 4, 5, 8, 9}
6665

6766
static inline void syscall_get_arguments(struct task_struct *task,

0 commit comments

Comments
 (0)