ipc: Add missing sys_ni entries for ipc/compat.c functions
PATCH 1/1 ipc: Add missing sys_ni entries for ipc/compat.c functions
When building with:
CONFIG_64BIT=yCONFIG_MIPS32_COMPAT=yCONFIG_COMPAT=yCONFIG_MIPS32_O32=yCONFIG_MIPS32_N32=yCONFIG_SYSVIPC is not set
(and implicitly: CONFIG_SYSVIPC_COMPAT is not set)
the final link fails with unresolved symbols for:
compat_sys_semctl, compat_sys_msgsnd, compat_sys_msgrcv, compat_sys_shmctl, compat_sys_msgctl, compat_sys_semtimedop
The fix is to add cond_syscall declarations for all syscalls in ipc/compat.c
--- kernel/sys_ni.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
kernel/sys_ni.c +7 -0
@@ -69,15 +69,22 @@ cond_syscall(compat_sys_epoll_pwait);cond_syscall (sys_semget);cond_syscall (sys_semop);cond_syscall (sys_semtimedop); +cond_syscall (compat_sys_semtimedop);cond_syscall (sys_semctl); +cond_syscall (compat_sys_semctl);cond_syscall (sys_msgget);cond_syscall (sys_msgsnd); +cond_syscall (compat_sys_msgsnd);cond_syscall (sys_msgrcv); +cond_syscall (compat_sys_msgrcv);cond_syscall (sys_msgctl); +cond_syscall (compat_sys_msgctl);cond_syscall (sys_shmget);cond_syscall (sys_shmat); +cond_syscall (compat_sys_shmat);cond_syscall (sys_shmdt);cond_syscall (sys_shmctl); +cond_syscall (compat_sys_shmctl);cond_syscall (sys_mq_open);cond_syscall (sys_mq_unlink);cond_syscall (sys_mq_timedsend);
Signature · 1 line
1.7.5
Quoted 20 lines · Kevin Cernekee
Date: Fri, 13 May 2011 17:07:28 -0700
From: Kevin Cernekee <[email protected]>
To: Andrew Morton <[email protected]>, Al Viro
<[email protected]>, Stephen Rothwell <[email protected]>
Cc: [email protected], [email protected]
Subject: [PATCH] ipc: Add missingsys_nientries foripc/compat.cfunctions
Content-Type: text/plain; charset=us-asciiWhen building with:
CONFIG_64BIT=yCONFIG_MIPS32_COMPAT=yCONFIG_COMPAT=yCONFIG_MIPS32_O32=yCONFIG_MIPS32_N32=yCONFIG_SYSVIPCis not set
(and implicitly:CONFIG_SYSVIPC_COMPATis not set)the final link fails with unresolved symbols for:
Quoted 7 lines
compat_sys_semctl,compat_sys_msgsnd,compat_sys_msgrcv,compat_sys_shmctl,compat_sys_msgctl,compat_sys_semtimedopThe fix is to add
cond_syscalldeclarations for all syscalls inipc/compat.cSigned-off-by Kevin Cernekee <[email protected]>
Thanks, Kevin!
Ralf