From: Ralf Baechle Date: Sat, 10 Mar 2007 18:22:25 +0000 (+0000) Subject: [MIPS] Compat: Fix build if CONFIG_SYSVIPC is disabled. X-Git-Tag: MMI-PSA29.97-13-9~44599^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=65f8ebe0630ffadce19a3ed11c7eb41bc6cfabce;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [MIPS] Compat: Fix build if CONFIG_SYSVIPC is disabled. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/linux32.c b/arch/mips/kernel/linux32.c index 1df544c1f966..37849edd0645 100644 --- a/arch/mips/kernel/linux32.c +++ b/arch/mips/kernel/linux32.c @@ -311,6 +311,8 @@ asmlinkage int sys32_sched_rr_get_interval(compat_pid_t pid, return ret; } +#ifdef CONFIG_SYSVIPC + asmlinkage long sys32_ipc (u32 call, int first, int second, int third, u32 ptr, u32 fifth) { @@ -368,6 +370,16 @@ sys32_ipc (u32 call, int first, int second, int third, u32 ptr, u32 fifth) return err; } +#else + +asmlinkage long +sys32_ipc (u32 call, int first, int second, int third, u32 ptr, u32 fifth) +{ + return -ENOSYS; +} + +#endif /* CONFIG_SYSVIPC */ + #ifdef CONFIG_MIPS32_N32 asmlinkage long sysn32_semctl(int semid, int semnum, int cmd, u32 arg) {