Skip to content

Commit d305c47

Browse files
emaschinoaegl
authored andcommitted
[IA64] Wire up kcmp syscall
systemd > 218 fails to compile on ia64 with: error: ‘__NR_kcmp’ undeclared [1]. I've been told that this is because the kcmp syscall hasn't been wired up for the ia64 arch [2]. The proposed patch thus wire up the kcmp syscall for the ia64 arch. [1] https://bugs.gentoo.org/show_bug.cgi?id=560492 [2] https://bugs.gentoo.org/show_bug.cgi?id=560492#c17 Signed-off-by: Émeric MASCHINO <emeric.maschino@gmail.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
1 parent 32b8819 commit d305c47

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

arch/ia64/include/asm/unistd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313

14-
#define NR_syscalls 321 /* length of syscall table */
14+
#define NR_syscalls 322 /* length of syscall table */
1515

1616
/*
1717
* The following defines stop scripts/checksyscalls.sh from complaining about

arch/ia64/include/uapi/asm/unistd.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,5 +334,6 @@
334334
#define __NR_execveat 1342
335335
#define __NR_userfaultfd 1343
336336
#define __NR_membarrier 1344
337+
#define __NR_kcmp 1345
337338

338339
#endif /* _UAPI_ASM_IA64_UNISTD_H */

arch/ia64/kernel/entry.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,5 +1770,6 @@ sys_call_table:
17701770
data8 sys_execveat
17711771
data8 sys_userfaultfd
17721772
data8 sys_membarrier
1773+
data8 sys_kcmp // 1345
17731774

17741775
.org sys_call_table + 8*NR_syscalls // guard against failures to increase NR_syscalls

0 commit comments

Comments
 (0)