Re: [PATCH] powerpc: Standardise on NR_syscalls rather than __NR_syscalls.

2015-11-23 Thread Michael Ellerman
On Mon, 2015-11-23 at 11:53 +0530, Anshuman Khandual wrote: > On 11/19/2015 11:34 AM, Rashmica Gupta wrote: > > Most architectures use NR_syscalls as the #define for the number of > > syscalls. > > > > We use __NR_syscalls, and then define NR_syscalls as __NR_syscalls. > > > > __NR_syscalls is

Re: [PATCH] powerpc: Standardise on NR_syscalls rather than __NR_syscalls.

2015-11-23 Thread Michael Ellerman
On Mon, 2015-11-23 at 12:28 +0300, Denis Kirjanov wrote: > On 11/23/15, Michael Ellerman wrote: > > On Thu, 2015-11-19 at 12:15 +0300, Denis Kirjanov wrote: > > > On 11/19/15, Rashmica Gupta wrote: > > > > Most architectures use NR_syscalls as the #define for the number of > > > > syscalls. > > >

Re: [PATCH] powerpc: Standardise on NR_syscalls rather than __NR_syscalls.

2015-11-23 Thread Denis Kirjanov
On 11/23/15, Michael Ellerman wrote: > On Thu, 2015-11-19 at 12:15 +0300, Denis Kirjanov wrote: > >> On 11/19/15, Rashmica Gupta wrote: > >> > Most architectures use NR_syscalls as the #define for the number of >> > syscalls. >> > >> > We use __NR_syscalls, and then define NR_syscalls as __NR_sys

Re: [PATCH] powerpc: Standardise on NR_syscalls rather than __NR_syscalls.

2015-11-22 Thread Anshuman Khandual
On 11/19/2015 11:34 AM, Rashmica Gupta wrote: > Most architectures use NR_syscalls as the #define for the number of syscalls. > > We use __NR_syscalls, and then define NR_syscalls as __NR_syscalls. > > __NR_syscalls is not used outside arch code, whereas NR_syscalls is. So as > NR_syscalls must b

Re: [PATCH] powerpc: Standardise on NR_syscalls rather than __NR_syscalls.

2015-11-22 Thread Michael Ellerman
On Thu, 2015-11-19 at 12:15 +0300, Denis Kirjanov wrote: > On 11/19/15, Rashmica Gupta wrote: > > Most architectures use NR_syscalls as the #define for the number of > > syscalls. > > > > We use __NR_syscalls, and then define NR_syscalls as __NR_syscalls. > > > > __NR_syscalls is not used outs

Re: [PATCH] powerpc: Standardise on NR_syscalls rather than __NR_syscalls.

2015-11-19 Thread Benjamin Herrenschmidt
On Thu, 2015-11-19 at 15:29 +0530, Anshuman Khandual wrote: > On 11/19/2015 02:45 PM, Denis Kirjanov wrote: > > On 11/19/15, Rashmica Gupta wrote: > > > > Most architectures use NR_syscalls as the #define for the > > > > number of > > > > syscalls. > > > > > > > > We use __NR_syscalls, and then d

Re: [PATCH] powerpc: Standardise on NR_syscalls rather than __NR_syscalls.

2015-11-19 Thread Anshuman Khandual
On 11/19/2015 02:45 PM, Denis Kirjanov wrote: > On 11/19/15, Rashmica Gupta wrote: >> > Most architectures use NR_syscalls as the #define for the number of >> > syscalls. >> > >> > We use __NR_syscalls, and then define NR_syscalls as __NR_syscalls. >> > >> > __NR_syscalls is not used outside arch

Re: [PATCH] powerpc: Standardise on NR_syscalls rather than __NR_syscalls.

2015-11-19 Thread Denis Kirjanov
On 11/19/15, Rashmica Gupta wrote: > Most architectures use NR_syscalls as the #define for the number of > syscalls. > > We use __NR_syscalls, and then define NR_syscalls as __NR_syscalls. > > __NR_syscalls is not used outside arch code, whereas NR_syscalls is. So as > NR_syscalls must be defined

[PATCH] powerpc: Standardise on NR_syscalls rather than __NR_syscalls.

2015-11-18 Thread Rashmica Gupta
Most architectures use NR_syscalls as the #define for the number of syscalls. We use __NR_syscalls, and then define NR_syscalls as __NR_syscalls. __NR_syscalls is not used outside arch code, whereas NR_syscalls is. So as NR_syscalls must be defined and __NR_syscalls does not, replace __NR_syscall