From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Bottomley Subject: Re: [PATCH] prctl: implement PR_GET_ENDIAN for all architectures Date: Wed, 01 Feb 2017 15:12:12 -0800 Message-ID: <1485990732.2322.40.camel@HansenPartnership.com> References: <20170128111310.GA13389@ls3530.fritz.box> <20170131162624.5a85ec47c6ee22e5cc03c4eb@linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170131162624.5a85ec47c6ee22e5cc03c4eb@linux-foundation.org> Sender: linux-parisc-owner@vger.kernel.org To: Andrew Morton , Helge Deller Cc: linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, Michael Kerrisk , linux-api@vger.kernel.org List-Id: linux-api@vger.kernel.org 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 architectures. > > Seems reasonable. I guess. Why is this needed? 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. James