提交 7e89a37c 编写于 作者: A Arnd Bergmann

ipc: Fix building compat mode without sysvipc

As John Stultz noticed, my y2038 syscall series caused a link
failure when CONFIG_SYSVIPC is disabled but CONFIG_COMPAT is
enabled:

arch/arm64/kernel/sys32.o:(.rodata+0x960): undefined reference to `__arm64_compat_sys_old_semctl'
arch/arm64/kernel/sys32.o:(.rodata+0x980): undefined reference to `__arm64_compat_sys_old_msgctl'
arch/arm64/kernel/sys32.o:(.rodata+0x9a0): undefined reference to `__arm64_compat_sys_old_shmctl'

Add the missing entries in kernel/sys_ni.c for the new system
calls.

Cc: Laura Abbott <labbott@redhat.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
上级 cfbe2716
...@@ -202,6 +202,7 @@ COND_SYSCALL(msgget); ...@@ -202,6 +202,7 @@ COND_SYSCALL(msgget);
COND_SYSCALL(old_msgctl); COND_SYSCALL(old_msgctl);
COND_SYSCALL(msgctl); COND_SYSCALL(msgctl);
COND_SYSCALL_COMPAT(msgctl); COND_SYSCALL_COMPAT(msgctl);
COND_SYSCALL_COMPAT(old_msgctl);
COND_SYSCALL(msgrcv); COND_SYSCALL(msgrcv);
COND_SYSCALL_COMPAT(msgrcv); COND_SYSCALL_COMPAT(msgrcv);
COND_SYSCALL(msgsnd); COND_SYSCALL(msgsnd);
...@@ -212,6 +213,7 @@ COND_SYSCALL(semget); ...@@ -212,6 +213,7 @@ COND_SYSCALL(semget);
COND_SYSCALL(old_semctl); COND_SYSCALL(old_semctl);
COND_SYSCALL(semctl); COND_SYSCALL(semctl);
COND_SYSCALL_COMPAT(semctl); COND_SYSCALL_COMPAT(semctl);
COND_SYSCALL_COMPAT(old_semctl);
COND_SYSCALL(semtimedop); COND_SYSCALL(semtimedop);
COND_SYSCALL(semtimedop_time32); COND_SYSCALL(semtimedop_time32);
COND_SYSCALL(semop); COND_SYSCALL(semop);
...@@ -221,6 +223,7 @@ COND_SYSCALL(shmget); ...@@ -221,6 +223,7 @@ COND_SYSCALL(shmget);
COND_SYSCALL(old_shmctl); COND_SYSCALL(old_shmctl);
COND_SYSCALL(shmctl); COND_SYSCALL(shmctl);
COND_SYSCALL_COMPAT(shmctl); COND_SYSCALL_COMPAT(shmctl);
COND_SYSCALL_COMPAT(old_shmctl);
COND_SYSCALL(shmat); COND_SYSCALL(shmat);
COND_SYSCALL_COMPAT(shmat); COND_SYSCALL_COMPAT(shmat);
COND_SYSCALL(shmdt); COND_SYSCALL(shmdt);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册