Skip to content

Commit 74cd218

Browse files
committed
ia64: add __NR_umount2 definition
Other architectures commonly use __NR_umount2 for sys_umount, only ia64 and alpha use __NR_umount here. In order to synchronize the generated tables, use umount2 like everyone else, and add back the old name from asm/unistd.h for compatibility. The __IGNORE_* lines are now all obsolete and can be removed as a side-effect. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 9085608 commit 74cd218

3 files changed

Lines changed: 3 additions & 15 deletions

File tree

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,6 @@
1212

1313
#define NR_syscalls __NR_syscalls /* length of syscall table */
1414

15-
/*
16-
* The following defines stop scripts/checksyscalls.sh from complaining about
17-
* unimplemented system calls. Glibc provides for each of these by using
18-
* more modern equivalent system calls.
19-
*/
20-
#define __IGNORE_fork /* clone() */
21-
#define __IGNORE_time /* gettimeofday() */
22-
#define __IGNORE_alarm /* setitimer(ITIMER_REAL, ... */
23-
#define __IGNORE_pause /* rt_sigprocmask(), rt_sigsuspend() */
24-
#define __IGNORE_utime /* utimes() */
25-
#define __IGNORE_getpgrp /* getpgid() */
26-
#define __IGNORE_vfork /* clone() */
27-
#define __IGNORE_umount2 /* umount() */
28-
2915
#define __ARCH_WANT_NEW_STAT
3016
#define __ARCH_WANT_SYS_UTIME
3117

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
#define __NR_Linux 1024
1717

18+
#define __NR_umount __NR_umount2
19+
1820
#include <asm/unistd_64.h>
1921

2022
#endif /* _UAPI_ASM_IA64_UNISTD_H */

‎arch/ia64/kernel/syscalls/syscall.tbl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
17 common getpid sys_getpid
3030
18 common getppid sys_getppid
3131
19 common mount sys_mount
32-
20 common umount sys_umount
32+
20 common umount2 sys_umount
3333
21 common setuid sys_setuid
3434
22 common getuid sys_getuid
3535
23 common geteuid sys_geteuid

0 commit comments

Comments
 (0)