Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4044559img; Tue, 26 Mar 2019 01:42:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwoxcfRDrQQFfNjBja9nBeWueqHmPs4gzjBDDaCqLloVjxcLxZ3duijNIGzDZYQ4no7X2so X-Received: by 2002:a17:902:a511:: with SMTP id s17mr29482501plq.262.1553589726434; Tue, 26 Mar 2019 01:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553589726; cv=none; d=google.com; s=arc-20160816; b=GnabtaD2F5NuQ/X24ew3S1jlLvFjlL94+tphzsZV/PPSz3zhre7r6m53naU7uAZeZV wJQ0VUP6J8dFbIr5epkk35uFwCFJwXeukFrk5osk9jOKJx3ikJrXB5ZHBlyO67GHM8jN 3KtArBsGTE5Zm+K5otfXioTXdOZVGoyIwTEk58OzVuQ/NA7YNUUCAhzKS0yfBvOiY2GI 4NgGL9TrfoH3RwTxFi26BaHatD0S897SHoO+28tHPhF0IcaRdCLyS0gFrJ1R65fhx6ov mXBxALnWlJy/9b1amosZZVDYA62xUEy2xQhcY8mTpJtZef1xldBHztTsXnp5B3jB4q7r IWQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=FsvXmJOm0pyAEzqJwh7QrRIEtsG70UpLjTLyzkR25QM=; b=crcnK2ERlGZPRlk8yr5HB0ZOcYHAjvcz6KnRCoTtdz90gJp27BzKfZENfannlDM8LN O+MxWim3w8pa+O49M0rFl+gQ13Jw2onGWwXAAQMEBEqHonM9i1RrfVtelSDANYa8K81U YsFOTx8aIuhwWwGte0w1GQOPYTYG/VkeZYYQzpjQaN4Glj0i8M55KwFTXBMI5DiKlDPo 8thGaDwGiFLiBnVnspeEOnDViImjC8eyMRffgI6N6G0g+irxaTifDCbu3F/fZkBa6jOT xpjMPmbCr71xTtQUZcVXqNu7ehNdTPfsY8AOfSceamdxnYoxAXzx32MPfa2/XXlWPBAD kf7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si15945801plp.392.2019.03.26.01.41.50; Tue, 26 Mar 2019 01:42:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731223AbfCZIlQ (ORCPT + 99 others); Tue, 26 Mar 2019 04:41:16 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:40195 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730633AbfCZIlP (ORCPT ); Tue, 26 Mar 2019 04:41:15 -0400 Received: by mail-qk1-f196.google.com with SMTP id w20so7077043qka.7; Tue, 26 Mar 2019 01:41:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FsvXmJOm0pyAEzqJwh7QrRIEtsG70UpLjTLyzkR25QM=; b=inGHnAWdZEHqVyzAUkaVa09dLWCrDcQma/jIwKLkmdlzFZV0JFjHkNEYQatkdUn3MK CuIHcEaZopxd/nmqihAFHAzjIRPJu6oxonVrCAIXxFhiMd4CLM1qs/nvL9TXGhMvgY+K hzsJo5N6hhUXBrpkzZBXJSvPkRXP1IsuHuPi+PYq7iKF/bW9hg84QppRnc5WxsfNHdta JQBCvgVbVamPvTBFzUgvmzMW9Cy+G+57FolnWxE5mVuXFxIydohCUh5tM4sizyxzg0mC Q1+mLfHhWjVGdftptweKD3WkEhsP7XY+XYQoEc5o68roMYbhlDVW2kjQIoiYHVdm8vHZ rubw== X-Gm-Message-State: APjAAAVlq05eoaMCMIjCmy0LkrUOUcVimpsX4d6nwcyKYgz5sm8Mk12D 2N6ruv3Fldr7vJGn+dA8esN3lpcFN6DP5amtYhY= X-Received: by 2002:a05:620a:133b:: with SMTP id p27mr23057938qkj.173.1553589674188; Tue, 26 Mar 2019 01:41:14 -0700 (PDT) MIME-Version: 1.0 References: <20190325143521.34928-1-arnd@arndb.de> <20190325144737.703921-1-arnd@arndb.de> <20190325173704.mun2cj2ulswv7s3i@pburton-laptop> In-Reply-To: <20190325173704.mun2cj2ulswv7s3i@pburton-laptop> From: Arnd Bergmann Date: Tue, 26 Mar 2019 09:40:57 +0100 Message-ID: Subject: Re: [PATCH 2/2] arch: add pidfd and io_uring syscalls everywhere To: Paul Burton Cc: Andrew Morton , Richard Henderson , Ivan Kokshaysky , Matt Turner , Russell King , Catalin Marinas , Will Deacon , Tony Luck , Fenghua Yu , Geert Uytterhoeven , Michal Simek , Ralf Baechle , James Hogan , "James E . J . Bottomley" , Helge Deller , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Martin Schwidefsky , Heiko Carstens , Rich Felker , "David S . Miller" , Max Filippov , Firoz Khan , "linux-alpha@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-ia64@vger.kernel.org" , "linux-m68k@lists.linux-m68k.org" , "linux-mips@vger.kernel.org" , "linux-parisc@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-s390@vger.kernel.org" , "linux-sh@vger.kernel.org" , "sparclinux@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 25, 2019 at 6:37 PM Paul Burton wrote: > On Mon, Mar 25, 2019 at 03:47:37PM +0100, Arnd Bergmann wrote: > > Add the io_uring and pidfd_send_signal system calls to all architectures. > > > > These system calls are designed to handle both native and compat tasks, > > so all entries are the same across architectures, only arm-compat and > > the generic tale still use an old format. > > > > Signed-off-by: Arnd Bergmann > > --- > >% > > diff --git a/arch/mips/kernel/syscalls/syscall_n64.tbl b/arch/mips/kernel/syscalls/syscall_n64.tbl > > index c85502e67b44..c4a49f7d57bb 100644 > > --- a/arch/mips/kernel/syscalls/syscall_n64.tbl > > +++ b/arch/mips/kernel/syscalls/syscall_n64.tbl > > @@ -338,3 +338,7 @@ > > 327 n64 rseq sys_rseq > > 328 n64 io_pgetevents sys_io_pgetevents > > # 329 through 423 are reserved to sync up with other architectures > > +424 common pidfd_send_signal sys_pidfd_send_signal > > +425 common io_uring_setup sys_io_uring_setup > > +426 common io_uring_enter sys_io_uring_enter > > +427 common io_uring_register sys_io_uring_register > > Shouldn't these declare the ABI as "n64"? > > I don't see anywhere that it would actually change the generated code, > but a comment at the top of the file says that every entry should use > "n64" and so far they all do. Did you have something else in mind here? You are right, the use of 'common' here is unintentional but harmless, and I should have used 'n64' here. We may decide to do things differently in the future, i.e. we could have just a single global file for newly added system calls once it turns out that the tables are consistent across all architectures, but I'd probably go on with the separate identical entries for a bit before changing that. Arnd