Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5127393imm; Tue, 18 Sep 2018 04:55:02 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaiSB1DUmSFs8y1KxOPoxW2KTpP19V/mXGKq1Cq/n5FiWOGydpea/Tni0WZKOqJ8iZ0azzc X-Received: by 2002:a17:902:585:: with SMTP id f5-v6mr29219154plf.7.1537271702509; Tue, 18 Sep 2018 04:55:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537271702; cv=none; d=google.com; s=arc-20160816; b=YmFJzO9V/m+E6dQ+Gh+gim/O1CFJ0klbqWGQLSCiNWMEFdYZn3HoJDLIKVg3FC8CQz loe7KdJGJXGLfH3U7eDVXIXQLOAmejjNJJpPRk2AXDI3H4vNbIeOiSI9tRrHEMenF3GM a3qTZcFr53Ky++stOJPf0QIxab48gCyBNwJ8V8iz1o7z+MpghHu8FNP8RMyhUTvxCHln t9hXyPaXP/yrOWQtUOb4dBQvghwnm8s27E4uSCeJuyIfx0XYc4MPtmS18ajGKe8u9Cmd vGMozX3BOYENyo9Y2a4RVHVXwu6ji3jIoHNiZizO9AAyB7MhR1jo7vDZnpxgJKj72L/l 6/pw== 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 :references:in-reply-to:mime-version:dkim-signature; bh=/aldVDZj9z2Yd95UlkwZPHy3lcAeyT9c+NA0CgjhlPU=; b=uf1/l9buhbTbGHp92H7ukCj5ecgMGd7AXLL+G7HR6KUVqHqCvl7xcDdrFBcmytHFyv wOnpMgpoSi9a90AMIj5J2ff4YiJfIDGcqPpzBuie8T/Lazp1I1QcR5RJmNOb5Zc5HtuS bxn1gA89xRC9eJjAvNymmylh36xxfs11rxqZySMJoKJJ42fz2ZF+G2EX2tnPzGobHkO8 5+3lBmRulGL7TbH0A9ElplcdAyzprlsBttXYKXNafQRWqF+FTku5Xa40Nqtq3x1j2J2L +W3a/olcjMWfmxW38PYGY5GD1Zit0aaLEIvGU+byc03ahfjHKxhtb3VcZAegt1EM630u OSvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rjf4sMVV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e9-v6si17620352pls.132.2018.09.18.04.54.46; Tue, 18 Sep 2018 04:55:02 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Rjf4sMVV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729279AbeIRRZX (ORCPT + 99 others); Tue, 18 Sep 2018 13:25:23 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:46658 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727660AbeIRRZX (ORCPT ); Tue, 18 Sep 2018 13:25:23 -0400 Received: by mail-yw1-f66.google.com with SMTP id j131-v6so623157ywc.13 for ; Tue, 18 Sep 2018 04:53:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/aldVDZj9z2Yd95UlkwZPHy3lcAeyT9c+NA0CgjhlPU=; b=Rjf4sMVV3DbCqyYRL4g8IeVGkL+F9oftgfXPOrviRL3AEbgs4yxrbOCmb39DghqvUQ wSBv9Tv0mX1DYD0nBfRdTdzeEhXxS/Nv1/C+u6aMnATssBfvRj9CnjKuv6qlTYA56oCd y8JG/eXYA+0nIRsqgmKNiftutMNdLW6WRgrGI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=/aldVDZj9z2Yd95UlkwZPHy3lcAeyT9c+NA0CgjhlPU=; b=uD3fF7bNbYAr3iDvaDWUwzFidhVgxGgFhpbYpqWQ+fTINFUovcv6iq6fZMRDCGm4pd 2X+laLzDS3ZPjZlR0IGfazcFtQNSsI5LLqOmx1VNZX45RcJSQVhT91D6r7hyhjaKx0Qg xgzzkurDclgd7E/fYfSTaHd78+Mv3+nu/9VF3wZen09MK2dAE4dnJnRtEnta7IvI/VH8 Q1Y+ESXW3LsxuSQmbjmFx+bJjUWPsiI7rAYoso6a0mWH/GF07xSQDcqLixOSKFsr8fjk abzh6p6agKrvUr0R+11GpfGIVqeAymvwPkteHAm2UtIyS345u2V/7xB08HHIrdiBELvT yMyg== X-Gm-Message-State: APzg51A9g8sY0KzQ2GNKnGgVuA2nFADchuHHIqEaMGdgRdNv3eaqK+ZX CB6dpZ/bqzjI3bxdAvbnWrFPYb1EuIw8Sxn9dxPjDw== X-Received: by 2002:a81:21c1:: with SMTP id h184-v6mr7711317ywh.367.1537271588219; Tue, 18 Sep 2018 04:53:08 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0d:cc4f:0:0:0:0:0 with HTTP; Tue, 18 Sep 2018 04:53:07 -0700 (PDT) In-Reply-To: References: <1536036087-15260-1-git-send-email-firoz.khan@linaro.org> <1536036087-15260-2-git-send-email-firoz.khan@linaro.org> From: Firoz Khan Date: Tue, 18 Sep 2018 17:23:07 +0530 Message-ID: Subject: Re: [PATCH 1/4] sparc: Move __IGNORE* entries to non uapi header To: Arnd Bergmann Cc: David Miller , sparclinux , gregkh , Philippe Ombredanne , Thomas Gleixner , 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 6 September 2018 at 20:58, Arnd Bergmann wrote: > On Tue, Sep 4, 2018 at 6:42 AM Firoz Khan wrote: > >> +++ b/arch/sparc/include/uapi/asm/unistd.h >> @@ -15,12 +15,6 @@ >> #ifndef _UAPI_SPARC_UNISTD_H >> #define _UAPI_SPARC_UNISTD_H >> >> -#ifndef __32bit_syscall_numbers__ >> -#ifndef __arch64__ >> -#define __32bit_syscall_numbers__ >> -#endif >> -#endif > > This is certainly required in the uapi header as of this patch, > without it all the numbers are wrong when you include the > file from user space. > > I suppose it can be removed later once the header is replaced > with the two generated versions, The script will generate 2 versions, ie, unistd_32.h and unistd_64.h. Please give few more pointer here. > >> -/* Bitmask values returned from kern_features system call. */ >> -#define KERN_FEATURE_MIXED_MODE_STACK 0x00000001 > > I'm fairly sure this also needs to remain in the uapi/asm/unistd.h header > as a start, so that user space can call the sys_kern_features() system > call and interpret its result when only the first patch is applied. Sure. I'll update in the next patch series. Thanks! > >> -#ifdef __32bit_syscall_numbers__ >> -/* Sparc 32-bit only has the "setresuid32", "getresuid32" variants, >> - * it never had the plain ones and there is no value to adding those >> - * old versions into the syscall table. >> - */ >> -#define __IGNORE_setresuid >> -#define __IGNORE_getresuid >> -#define __IGNORE_setresgid >> -#define __IGNORE_getresgid >> -#endif >> - >> -/* Sparc doesn't have protection keys. */ >> -#define __IGNORE_pkey_mprotect >> -#define __IGNORE_pkey_alloc >> -#define __IGNORE_pkey_free >> - > > This part is fine. > > Arnd