From patchwork Fri Sep 17 07:05:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Munsie X-Patchwork-Id: 65037 X-Patchwork-Delegate: benh@kernel.crashing.org Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 98A8BB72C6 for ; Fri, 17 Sep 2010 17:05:32 +1000 (EST) Received: from e23smtp05.au.ibm.com (e23smtp05.au.ibm.com [202.81.31.147]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e23smtp05.au.ibm.com", Issuer "GeoTrust SSL CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id F111FB6EEB for ; Fri, 17 Sep 2010 17:05:21 +1000 (EST) Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [202.81.31.246]) by e23smtp05.au.ibm.com (8.14.4/8.13.1) with ESMTP id o8H70jTv020321 for ; Fri, 17 Sep 2010 17:00:45 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o8H75K4j2277514 for ; Fri, 17 Sep 2010 17:05:20 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o8H75IPU030618 for ; Fri, 17 Sep 2010 17:05:20 +1000 Received: from ozlabs.au.ibm.com (ozlabs.au.ibm.com [9.190.163.12]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id o8H75IIg030615; Fri, 17 Sep 2010 17:05:18 +1000 Received: from delenn.ozlabs.ibm.com (haven.au.ibm.com [9.190.164.82]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id A3357739D8; Fri, 17 Sep 2010 17:05:17 +1000 (EST) From: "Ian Munsie" To: Benjamin Herrenschmidt 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> Cc: Stephen Rothwell , linux-kernel@vger.kernel.org, Eric Paris , linux-next , Paul Mackerras , Ian Munsie , Russell King , Andrew Morton , linuxppc-dev , "David S. Miller" , "Eric W. Biederman" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.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);