From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-f196.google.com ([209.85.160.196]:41594 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728349AbeIYDKs (ORCPT ); Mon, 24 Sep 2018 23:10:48 -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: From: Arnd Bergmann Date: Mon, 24 Sep 2018 23:06:25 +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: <20180924210625.BaAGuXLBwHPPfMZ7deTqkAIgECMosWiw-nRjr_C1m8M@z> On Tue, Sep 18, 2018 at 1:53 PM Firoz Khan wrote: > > 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. You still need to check at least for __arch64__ in asm/unistd.h in order to pick which header to include, right? Since the __32bit_syscall_numbers__ check was already in the public header file, it may also be possible that there is some user space application that sets this in order to get the 32-bit definitions. This might e.g. be needed for strace. Arnd