Re: [PATCH 1/4] sparc: Move __IGNORE* entries to non uapi header

From: Arnd Bergmann
Date: Mon Sep 24 2018 - 17:06:46 EST


On Tue, Sep 18, 2018 at 1:53 PM Firoz Khan <firoz.khan@xxxxxxxxxx> wrote:
>
> On 6 September 2018 at 20:58, Arnd Bergmann <arnd@xxxxxxxx> wrote:
> > On Tue, Sep 4, 2018 at 6:42 AM Firoz Khan <firoz.khan@xxxxxxxxxx> 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