From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f193.google.com ([209.85.216.193]:42565 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729991AbeIFUEn (ORCPT ); Thu, 6 Sep 2018 16:04:43 -0400 MIME-Version: 1.0 References: <1536036087-15260-1-git-send-email-firoz.khan@linaro.org> <1536036087-15260-2-git-send-email-firoz.khan@linaro.org> In-Reply-To: <1536036087-15260-2-git-send-email-firoz.khan@linaro.org> From: Arnd Bergmann Date: Thu, 6 Sep 2018 17:28:24 +0200 Message-ID: Subject: Re: [PATCH 1/4] sparc: Move __IGNORE* entries to non uapi header Content-Type: text/plain; charset="UTF-8" Sender: linux-arch-owner@vger.kernel.org List-ID: To: Firoz Khan Cc: David Miller , sparclinux , gregkh , Philippe Ombredanne , Thomas Gleixner , Kate Stewart , y2038 Mailman List , Linux Kernel Mailing List , linux-arch , Deepa Dinamani , Marcin Juszkiewicz Message-ID: <20180906152824.7dGkPgB4VsLSnEZJ9LEDjsWwFskoeyRdOjV6nLRtSnw@z> 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, > -/* 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. > -#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