Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp135049imm; Mon, 1 Oct 2018 07:45:10 -0700 (PDT) X-Google-Smtp-Source: ACcGV60IFzn++fI8SZ+ZliWGwBXpOSRxfuXS2krBYp/6n9EWV3zRXs14xZvLUlzm8FNikikgxGB1 X-Received: by 2002:a17:902:74c4:: with SMTP id f4-v6mr12147919plt.59.1538405110585; Mon, 01 Oct 2018 07:45:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538405110; cv=none; d=google.com; s=arc-20160816; b=Xf8OUdsfFFOn3JuvHKyKzWUDPPGjiX91717fOPshD/SMvv27E8Sku5spe020sd6iIM Gbo5aSBlXmno1+VETY6BS/O3qwmnVuyfQHI5q92TFc91aMktAGsMELcglGKXQrm1053K Fb3TSDOh+loGP49t//k1/6VwXfwtwkVyjCvwqdomvLwXNZiRJqG7YlJQP3LYOUjDWCd1 fj5RCNTVxP1WiYiRLBB39G+UrusuCQAOB/+QKKU4dXV6EYiCn316XPRc6tHUAlyBc2xQ Pka108MlmB6fTGjO/D/y2SL+868vUShip8+nMUwpiSyhyFl4nwNiGs+VRQ1+f/35cEql IbVg== 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=+4QMG1sB8NQlpoY7YveKE8A+ZWPS205GN5CyCDz95rk=; b=UC+L6oh+nbkvChGgCDwN7xNqkYTnx/H/A7NMsRBLARc/ZwcEGiflZOtXFQJvtpt1uA BVZi45egIO7GtjANvqdtuZCbjF1mwfbBISZbisfKShXkovLSNoGbkafe67ZcHi6jvsbS GNjoFwAfEdNeTtUJUN6EfTERcZIVOSQSDZHIFaCWzVrAPHSuQpx22+bC3F13SRdi9JLX Bsi+zd1GG1/Iqwbg9IIY8BhnsoZBF1jjzzIySMXokW+CT72R5mDTh/pP6VRe/gmeE64h e034LhS+J9lxwk2pIJD5NIcBdqWpXSFH2dOJpx7cDZCQNjh7ru5pZCK16drPoOjXjGIC Pijg== 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 a1-v6si2996607pld.313.2018.10.01.07.44.54; Mon, 01 Oct 2018 07:45:10 -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 S1729552AbeJAVWo (ORCPT + 99 others); Mon, 1 Oct 2018 17:22:44 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:42395 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729457AbeJAVWo (ORCPT ); Mon, 1 Oct 2018 17:22:44 -0400 Received: by mail-qt1-f196.google.com with SMTP id z8-v6so14189321qto.9; Mon, 01 Oct 2018 07:44:35 -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=+4QMG1sB8NQlpoY7YveKE8A+ZWPS205GN5CyCDz95rk=; b=nAz6lyqP7lwdX66i+nKxga2wRZZU281aSvFM8IFFuLRYHIT3CVIL6M4THGl4LZPiuQ 8ebUxO6zauQWWEf0oXJ7+Cmcue6d1YzjheLIMDgl12UFkrnzCCz8E14ZNX2paD7vAuKF hHPTgam9252UZhF9pvfohCy0BYxJCdgLp5xcmn2Iy3rEiuxJEYhae4qu8lLmHSPj5lBo 9JmuTw6BYNxLiF/N+hwZlXR374nGdM6gZIEsUIhdwPzirojM0ttQFlIFLV3uNcMItN8N kjbRaJT8KgeoNCncZlWdYuouYmlboxryz+HHfWTLz/KmsSgBcsIonQ5TmBQYcucu66M+ fTeQ== X-Gm-Message-State: ABuFfog020pUwmDv/2ZFzCqEtLbkl8yUDQGG9f6QayqztmHapPTH7CMk 4IDBRHmjocw0pcYPOHXtHqM+s3QoFHIEYGZD+kQ= X-Received: by 2002:aed:3f08:: with SMTP id p8-v6mr8732495qtf.185.1538405074737; Mon, 01 Oct 2018 07:44:34 -0700 (PDT) MIME-Version: 1.0 References: <1538057720-3392-1-git-send-email-firoz.khan@linaro.org> <1538057720-3392-2-git-send-email-firoz.khan@linaro.org> In-Reply-To: From: Arnd Bergmann Date: Mon, 1 Oct 2018 16:44:16 +0200 Message-ID: Subject: Re: [PATCH v2 1/7] ia64: add __NR_old_getpagesize macro To: Firoz Khan Cc: linux-ia64@vger.kernel.org, Tony Luck , Fenghua Yu , Thomas Gleixner , gregkh , Philippe Ombredanne , Kate Stewart , y2038 Mailman List , Linux Kernel Mailing List , linux-arch , Deepa Dinamani , Marcin Juszkiewicz 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, Oct 1, 2018 at 4:18 PM Firoz Khan wrote: > > Hi Arnd, > > On Fri, 28 Sep 2018 at 17:41, Arnd Bergmann wrote: > > > > On Thu, Sep 27, 2018 at 4:16 PM Firoz Khan wrote: > > > > > > Add __NR_old_getpagesize in order to not break old user space > > > as it is reserved for backwards compatibility with old __NR_ > > > getpagesize. > > > > That description doesn't really make sense here. > > Sure I'll some more details. But rest of the patch looks good? > This is some I was bit confused! In header there is no entry, but > in system call table has the entry for the system call. I think adding some macro for it makes sense, and the __NR_old_getpagesize name you picked is fine for that. I think generally speaking we want the unistd.h macros to match up with the system call entry points, and there are currently multiple ways they diverge: - System calls have been removed from the kernels, and the macros in unistd.h are still there on some architectures but not others. This is something we should clean up /after/ you are done. - System calls have a number but are not implemented on all architectures because they don't make sense (e.g. pk pkey_add). These should probably have an entry in kernel/sys_ni.c if they don't already have one. - System calls have an entry but no macro, like the ia64 old_getpagesize. I think if you encounter one of these, we need to fix them up before your series so we can complete the conversion to generated tables. Arnd