From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754956Ab0IQHFZ (ORCPT ); Fri, 17 Sep 2010 03:05:25 -0400 Received: from e23smtp02.au.ibm.com ([202.81.31.144]:37067 "EHLO e23smtp02.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752733Ab0IQHFX (ORCPT ); Fri, 17 Sep 2010 03:05:23 -0400 From: "Ian Munsie" To: Benjamin Herrenschmidt Cc: Paul Mackerras , linuxppc-dev , linux-next , Stephen Rothwell , Ian Munsie , Andrew Morton , Eric Paris , "David S. Miller" , "Eric W. Biederman" , Russell King , linux-kernel@vger.kernel.org Subject: [PATCH] powerpc: define a compat_sys_recv cond_syscall Date: Fri, 17 Sep 2010 17:05:03 +1000 Message-Id: <1284707103-4097-1-git-send-email-imunsie@au1.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <20100903132410.ede593ed.sfr@canb.auug.org.au> References: <20100903132410.ede593ed.sfr@canb.auug.org.au> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stephen Rothwell Since compat_sys_recv is an optionl syscall if the kernel is compiled without networking we need a cond_syscall defined for it since it is now wired up directly on PowerPC. Other architectures that wire up the socket calls directly as syscalls do not run into this issue either because they don't have to deal with the 32bit compat versions of the syscalls or just don't wire up that particular compat syscall directly. Signed-off-by: Stephen Rothwell Signed-off-by: Ian Munsie --- kernel/sys_ni.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/kernel/sys_ni.c b/kernel/sys_ni.c index bad369e..c782fe9 100644 --- a/kernel/sys_ni.c +++ b/kernel/sys_ni.c @@ -50,6 +50,7 @@ cond_syscall(compat_sys_sendmsg); cond_syscall(sys_recvmsg); cond_syscall(sys_recvmmsg); cond_syscall(compat_sys_recvmsg); +cond_syscall(compat_sys_recv); cond_syscall(compat_sys_recvfrom); cond_syscall(compat_sys_recvmmsg); cond_syscall(sys_socketcall); -- 1.7.1