Commit d6e59579 authored by Yang Yang's avatar Yang Yang Committed by Matt Turner

alpha: replace NR_SYSCALLS by NR_syscalls

Reference to other arch likes x86_64 or arm64 to do this replacement.
To solve compile error when using NR_syscalls in kernel[1].

[1] https://lore.kernel.org/all/202203270449.WBYQF9X3-lkp@intel.com/Signed-off-by: default avatarYang Yang <yang.yang29@zte.com.cn>
Signed-off-by: default avatarMatt Turner <mattst88@gmail.com>
parent 19fa21d7
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include <uapi/asm/unistd.h> #include <uapi/asm/unistd.h>
#define NR_SYSCALLS __NR_syscalls #define NR_syscalls __NR_syscalls
#define __ARCH_WANT_NEW_STAT #define __ARCH_WANT_NEW_STAT
#define __ARCH_WANT_OLD_READDIR #define __ARCH_WANT_OLD_READDIR
......
...@@ -454,7 +454,7 @@ entSys: ...@@ -454,7 +454,7 @@ entSys:
SAVE_ALL SAVE_ALL
lda $8, 0x3fff lda $8, 0x3fff
bic $sp, $8, $8 bic $sp, $8, $8
lda $4, NR_SYSCALLS($31) lda $4, NR_syscalls($31)
stq $16, SP_OFF+24($sp) stq $16, SP_OFF+24($sp)
lda $5, sys_call_table lda $5, sys_call_table
lda $27, sys_ni_syscall lda $27, sys_ni_syscall
...@@ -583,7 +583,7 @@ strace: ...@@ -583,7 +583,7 @@ strace:
ldq $21, 88($sp) ldq $21, 88($sp)
/* get the system call pointer.. */ /* get the system call pointer.. */
lda $1, NR_SYSCALLS($31) lda $1, NR_syscalls($31)
lda $2, sys_call_table lda $2, sys_call_table
lda $27, sys_ni_syscall lda $27, sys_ni_syscall
cmpult $0, $1, $1 cmpult $0, $1, $1
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include "pid_list.h" #include "pid_list.h"
#ifdef CONFIG_FTRACE_SYSCALLS #ifdef CONFIG_FTRACE_SYSCALLS
#include <asm/unistd.h> /* For NR_SYSCALLS */ #include <asm/unistd.h> /* For NR_syscalls */
#include <asm/syscall.h> /* some archs define it here */ #include <asm/syscall.h> /* some archs define it here */
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment