From patchwork Wed Sep 9 21:08:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 7149121 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 782549F1D3 for ; Wed, 9 Sep 2015 21:16:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9D7EB20991 for ; Wed, 9 Sep 2015 21:16:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A5B7320989 for ; Wed, 9 Sep 2015 21:16:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755748AbbIIVP7 (ORCPT ); Wed, 9 Sep 2015 17:15:59 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:34884 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753141AbbIIVIs (ORCPT ); Wed, 9 Sep 2015 17:08:48 -0400 Received: by pacfv12 with SMTP id fv12so21098543pac.2 for ; Wed, 09 Sep 2015 14:08:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:cc:cc:cc:cc:cc:cc:cc:cc:cc:cc:cc:cc :cc:cc:subject:date:message-id:in-reply-to:references; bh=AkcLrrQCogZPpTwDAJX9ZQF+2aS8n093HfsO5mRyN+8=; b=LPTS9hcmKlEnSNXaz81uJbiaaoGUZQF9WWqlD8H8bzoyvtQhl6gEnfFajDVv7Y07R+ Fy/D5w0bStoQ/a+200r3eE8I69LIIHmOXcfUQYmHxf32ysKk+VRepJN5+BPKtmkGxSOH 3dJjPaqSgUhyFcYJgqzS75xf0ZLj943MCTLnX2LeSbcDXqvsa0Lgdn14ZnDErLprtaXJ F57HXuKNLovSlYbmMKDhbnjzxHfUjnXRzzOqItAljrQDYcWT+8TrmX9gxIeA959dJTIR VmTc6DYqedYn6jBPILhPWueq//0thXbW+UsvYCz7vyK8I5HHAgZAb5+CgA7enrj1pMsX FlYw== X-Gm-Message-State: ALoCoQk0t4IIE2R519RjdiEibsyvL8hKblVF82DQH9Vbau8W32X7Ae6rjFcwLrwiuaAulYgm5wlP X-Received: by 10.68.175.3 with SMTP id bw3mr74385054pbc.106.1441832927402; Wed, 09 Sep 2015 14:08:47 -0700 (PDT) Received: from localhost (wap-cal.CS.Berkeley.EDU. [128.32.35.228]) by smtp.gmail.com with ESMTPSA id x11sm3761286pdi.48.2015.09.09.14.08.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 14:08:46 -0700 (PDT) From: Palmer Dabbelt To: arnd@arndb.de Cc: 3chas3@gmail.com Cc: hpa@zytor.com Cc: mingo@redhat.com Cc: plagnioj@jcrosoft.com Cc: jikos@kernel.org Cc: linux-api@vger.kernel.org Cc: linux-arch@vger.kernel.org Cc: linux-atm-general@lists.sourceforge.net Cc: linux-fbdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: netdev@vger.kernel.org Cc: tglx@linutronix.de Cc: tomi.valkeinen@ti.com Cc: x86@kernel.org Cc: Palmer Dabbelt Subject: [PATCH 02/13] Always expose __SYSCALL(... fork ...) Date: Wed, 9 Sep 2015 14:08:11 -0700 Message-Id: <1441832902-28993-3-git-send-email-palmer@dabbelt.com> X-Mailer: git-send-email 2.4.6 In-Reply-To: <1441832902-28993-1-git-send-email-palmer@dabbelt.com> References: <2644177.lVCYzIBfPW@wuerfel> <1441832902-28993-1-git-send-email-palmer@dabbelt.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP I think this change actually doesn't do anything: __NR_fork was still being defined either way, and on my machine fork() in comes from libc. That said, I don't think there's any way to determine this automatically, so this at least quiets the checker. Signed-off-by: Palmer Dabbelt Reviewed-by: Andrew Waterman Reviewed-by: Albert Ou --- include/uapi/asm-generic/unistd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index e016bd9b1a04..e027ef7aa01f 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h @@ -865,11 +865,11 @@ __SYSCALL(__NR_uselib, sys_uselib) __SYSCALL(__NR__sysctl, sys_sysctl) #define __NR_fork 1079 -#ifdef CONFIG_MMU +#if !defined(__KERNEL__) || defined(CONFIG_MMU) __SYSCALL(__NR_fork, sys_fork) #else __SYSCALL(__NR_fork, sys_ni_syscall) -#endif /* CONFIG_MMU */ +#endif /* !__KERNEL__ || CONFIG_MMU */ #undef __NR_syscalls #define __NR_syscalls (__NR_fork+1)