[PATCH 3/5] all: s390: move wrapper infrastructure to generic headers

2016-02-26 Thread Yury Norov
This patch moves required code to generic files to let other arches use it if needed. Here also, additional code is introduced, as s390 uses asm syscall tables, while in general case, wrappers may be used in C code. __SC_COMPAT_CAST for s390 is too specific due to 31-bit pointer length, so it's

[PATCH 3/5] all: s390: move wrapper infrastructure to generic headers

2016-02-26 Thread Yury Norov
This patch moves required code to generic files to let other arches use it if needed. Here also, additional code is introduced, as s390 uses asm syscall tables, while in general case, wrappers may be used in C code. __SC_COMPAT_CAST for s390 is too specific due to 31-bit pointer length, so it's

Re: [PATCH 3/5] all: s390: move wrapper infrastructure to generic headers

2016-02-25 Thread Heiko Carstens
On Thu, Feb 25, 2016 at 11:23:50PM +0300, Yury Norov wrote: > On Thu, Feb 25, 2016 at 09:51:40AM +0100, Heiko Carstens wrote: > > On Wed, Feb 24, 2016 at 09:34:12PM +0300, Yury Norov wrote: > > > diff --git a/include/linux/syscalls_structs.h > > > b/include/linux/syscalls_structs.h > > > new file

Re: [PATCH 3/5] all: s390: move wrapper infrastructure to generic headers

2016-02-25 Thread Heiko Carstens
On Thu, Feb 25, 2016 at 11:23:50PM +0300, Yury Norov wrote: > On Thu, Feb 25, 2016 at 09:51:40AM +0100, Heiko Carstens wrote: > > On Wed, Feb 24, 2016 at 09:34:12PM +0300, Yury Norov wrote: > > > diff --git a/include/linux/syscalls_structs.h > > > b/include/linux/syscalls_structs.h > > > new file

Re: [PATCH 3/5] all: s390: move wrapper infrastructure to generic headers

2016-02-25 Thread Yury Norov
On Thu, Feb 25, 2016 at 09:51:40AM +0100, Heiko Carstens wrote: > On Wed, Feb 24, 2016 at 09:34:12PM +0300, Yury Norov wrote: > > diff --git a/include/linux/syscalls_structs.h > > b/include/linux/syscalls_structs.h > > new file mode 100644 > > index 000..a920cbc > > --- /dev/null > > +++

Re: [PATCH 3/5] all: s390: move wrapper infrastructure to generic headers

2016-02-25 Thread Yury Norov
On Thu, Feb 25, 2016 at 09:51:40AM +0100, Heiko Carstens wrote: > On Wed, Feb 24, 2016 at 09:34:12PM +0300, Yury Norov wrote: > > diff --git a/include/linux/syscalls_structs.h > > b/include/linux/syscalls_structs.h > > new file mode 100644 > > index 000..a920cbc > > --- /dev/null > > +++

Re: [PATCH 3/5] all: s390: move wrapper infrastructure to generic headers

2016-02-25 Thread Heiko Carstens
On Wed, Feb 24, 2016 at 09:34:12PM +0300, Yury Norov wrote: > diff --git a/include/linux/syscalls_structs.h > b/include/linux/syscalls_structs.h > new file mode 100644 > index 000..a920cbc > --- /dev/null > +++ b/include/linux/syscalls_structs.h > @@ -0,0 +1,60 @@ > +#ifndef

Re: [PATCH 3/5] all: s390: move wrapper infrastructure to generic headers

2016-02-25 Thread Heiko Carstens
On Wed, Feb 24, 2016 at 09:34:12PM +0300, Yury Norov wrote: > diff --git a/include/linux/syscalls_structs.h > b/include/linux/syscalls_structs.h > new file mode 100644 > index 000..a920cbc > --- /dev/null > +++ b/include/linux/syscalls_structs.h > @@ -0,0 +1,60 @@ > +#ifndef

[PATCH 3/5] all: s390: move wrapper infrastructure to generic headers

2016-02-24 Thread Yury Norov
__SC_COMPAT_CAST for s390 is too specific due to 31-bit pointer length, so it's moved to arch/s390/include/asm/compat.h. Generic declaration assumes that long, unsigned long and pointer types are all 32-bit length. linux/syscalls_structs.h header is introduced, because from now (see next patch)

[PATCH 3/5] all: s390: move wrapper infrastructure to generic headers

2016-02-24 Thread Yury Norov
__SC_COMPAT_CAST for s390 is too specific due to 31-bit pointer length, so it's moved to arch/s390/include/asm/compat.h. Generic declaration assumes that long, unsigned long and pointer types are all 32-bit length. linux/syscalls_structs.h header is introduced, because from now (see next patch)