Re: [PATCH] prctl: implement PR_GET_ENDIAN for all architectures

2017-02-14 Thread Michael Ellerman
"Maciej W. Rozycki" writes: > On Sun, 5 Feb 2017, Matt Turner wrote: > >> > I don't think it is other than for PPC. If you're not variable endian >> > (which is only PPC to date), then you should know a priori what endian >> > you are from the #defines in userspace. >> >>

Re: [PATCH] prctl: implement PR_GET_ENDIAN for all architectures

2017-02-14 Thread Michael Ellerman
"Maciej W. Rozycki" writes: > On Sun, 5 Feb 2017, Matt Turner wrote: > >> > I don't think it is other than for PPC. If you're not variable endian >> > (which is only PPC to date), then you should know a priori what endian >> > you are from the #defines in userspace. >> >> MIPS as well, but it

Re: [PATCH] prctl: implement PR_GET_ENDIAN for all architectures

2017-02-05 Thread Maciej W. Rozycki
On Sun, 5 Feb 2017, Matt Turner wrote: > > I don't think it is other than for PPC. If you're not variable endian > > (which is only PPC to date), then you should know a priori what endian > > you are from the #defines in userspace. > > MIPS as well, but it seems strange to require the kernel to

Re: [PATCH] prctl: implement PR_GET_ENDIAN for all architectures

2017-02-05 Thread Maciej W. Rozycki
On Sun, 5 Feb 2017, Matt Turner wrote: > > I don't think it is other than for PPC. If you're not variable endian > > (which is only PPC to date), then you should know a priori what endian > > you are from the #defines in userspace. > > MIPS as well, but it seems strange to require the kernel to

Re: [PATCH] prctl: implement PR_GET_ENDIAN for all architectures

2017-02-05 Thread Matt Turner
On Thu, Feb 2, 2017 at 12:12 AM, James Bottomley wrote: > On Tue, 2017-01-31 at 16:26 -0800, Andrew Morton wrote: >> On Sat, 28 Jan 2017 12:13:10 +0100 Helge Deller >> wrote: >> >> > The prctl(PR_GET_ENDIAN) syscall was added to Kernel

Re: [PATCH] prctl: implement PR_GET_ENDIAN for all architectures

2017-02-05 Thread Matt Turner
On Thu, Feb 2, 2017 at 12:12 AM, James Bottomley wrote: > On Tue, 2017-01-31 at 16:26 -0800, Andrew Morton wrote: >> On Sat, 28 Jan 2017 12:13:10 +0100 Helge Deller >> wrote: >> >> > The prctl(PR_GET_ENDIAN) syscall was added to Kernel 2.6.18, but >> > implemented for PowerPC only. This trivial

Re: [PATCH] prctl: implement PR_GET_ENDIAN for all architectures

2017-02-01 Thread Andy Lutomirski
On Wed, Feb 1, 2017 at 3:12 PM, James Bottomley wrote: > On Tue, 2017-01-31 at 16:26 -0800, Andrew Morton wrote: >> On Sat, 28 Jan 2017 12:13:10 +0100 Helge Deller >> wrote: >> >> > The prctl(PR_GET_ENDIAN) syscall was added to Kernel 2.6.18,

Re: [PATCH] prctl: implement PR_GET_ENDIAN for all architectures

2017-02-01 Thread Andy Lutomirski
On Wed, Feb 1, 2017 at 3:12 PM, James Bottomley wrote: > On Tue, 2017-01-31 at 16:26 -0800, Andrew Morton wrote: >> On Sat, 28 Jan 2017 12:13:10 +0100 Helge Deller >> wrote: >> >> > The prctl(PR_GET_ENDIAN) syscall was added to Kernel 2.6.18, but >> > implemented for PowerPC only. This trivial

Re: [PATCH] prctl: implement PR_GET_ENDIAN for all architectures

2017-02-01 Thread James Bottomley
On Tue, 2017-01-31 at 16:26 -0800, Andrew Morton wrote: > On Sat, 28 Jan 2017 12:13:10 +0100 Helge Deller > wrote: > > > The prctl(PR_GET_ENDIAN) syscall was added to Kernel 2.6.18, but > > implemented for PowerPC only. This trivial patch adds support for > > this syscall for all

Re: [PATCH] prctl: implement PR_GET_ENDIAN for all architectures

2017-02-01 Thread James Bottomley
On Tue, 2017-01-31 at 16:26 -0800, Andrew Morton wrote: > On Sat, 28 Jan 2017 12:13:10 +0100 Helge Deller > wrote: > > > The prctl(PR_GET_ENDIAN) syscall was added to Kernel 2.6.18, but > > implemented for PowerPC only. This trivial patch adds support for > > this syscall for all other

Re: [PATCH] prctl: implement PR_GET_ENDIAN for all architectures

2017-02-01 Thread Andrew Morton
On Wed, 1 Feb 2017 20:47:06 +0100 Helge Deller wrote: > Hi Andrew, > > On 01.02.2017 01:26, Andrew Morton wrote: > > On Sat, 28 Jan 2017 12:13:10 +0100 Helge Deller wrote: > > > >> The prctl(PR_GET_ENDIAN) syscall was added to Kernel 2.6.18, but > >> implemented

Re: [PATCH] prctl: implement PR_GET_ENDIAN for all architectures

2017-02-01 Thread Andrew Morton
On Wed, 1 Feb 2017 20:47:06 +0100 Helge Deller wrote: > Hi Andrew, > > On 01.02.2017 01:26, Andrew Morton wrote: > > On Sat, 28 Jan 2017 12:13:10 +0100 Helge Deller wrote: > > > >> The prctl(PR_GET_ENDIAN) syscall was added to Kernel 2.6.18, but > >> implemented for PowerPC only. > >> This

Re: [PATCH] prctl: implement PR_GET_ENDIAN for all architectures

2017-02-01 Thread Helge Deller
Hi Andrew, On 01.02.2017 01:26, Andrew Morton wrote: > On Sat, 28 Jan 2017 12:13:10 +0100 Helge Deller wrote: > >> The prctl(PR_GET_ENDIAN) syscall was added to Kernel 2.6.18, but >> implemented for PowerPC only. >> This trivial patch adds support for this syscall for all other

Re: [PATCH] prctl: implement PR_GET_ENDIAN for all architectures

2017-02-01 Thread Helge Deller
Hi Andrew, On 01.02.2017 01:26, Andrew Morton wrote: > On Sat, 28 Jan 2017 12:13:10 +0100 Helge Deller wrote: > >> The prctl(PR_GET_ENDIAN) syscall was added to Kernel 2.6.18, but >> implemented for PowerPC only. >> This trivial patch adds support for this syscall for all other architectures. >

Re: [PATCH] prctl: implement PR_GET_ENDIAN for all architectures

2017-01-31 Thread Andrew Morton
On Sat, 28 Jan 2017 12:13:10 +0100 Helge Deller wrote: > The prctl(PR_GET_ENDIAN) syscall was added to Kernel 2.6.18, but > implemented for PowerPC only. > This trivial patch adds support for this syscall for all other architectures. Seems reasonable. I guess. Why is this

Re: [PATCH] prctl: implement PR_GET_ENDIAN for all architectures

2017-01-31 Thread Andrew Morton
On Sat, 28 Jan 2017 12:13:10 +0100 Helge Deller wrote: > The prctl(PR_GET_ENDIAN) syscall was added to Kernel 2.6.18, but > implemented for PowerPC only. > This trivial patch adds support for this syscall for all other architectures. Seems reasonable. I guess. Why is this needed? The man

[PATCH] prctl: implement PR_GET_ENDIAN for all architectures

2017-01-28 Thread Helge Deller
The prctl(PR_GET_ENDIAN) syscall was added to Kernel 2.6.18, but implemented for PowerPC only. This trivial patch adds support for this syscall for all other architectures. Signed-off-by: Helge Deller diff --git a/kernel/sys.c b/kernel/sys.c index 842914e..5818e5e 100644 ---

[PATCH] prctl: implement PR_GET_ENDIAN for all architectures

2017-01-28 Thread Helge Deller
The prctl(PR_GET_ENDIAN) syscall was added to Kernel 2.6.18, but implemented for PowerPC only. This trivial patch adds support for this syscall for all other architectures. Signed-off-by: Helge Deller diff --git a/kernel/sys.c b/kernel/sys.c index 842914e..5818e5e 100644 --- a/kernel/sys.c +++