From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stafford Horne Date: Tue, 8 Feb 2022 14:29:44 +0900 Subject: [OpenRISC] [PATCH] openrisc: remove CONFIG_SET_FS In-Reply-To: <3744dcbbf2874875b023548aacdd8b41@AcuMS.aculab.com> References: <20220206013648.3491865-1-shorne@gmail.com> <3744dcbbf2874875b023548aacdd8b41@AcuMS.aculab.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: openrisc@lists.librecores.org On Mon, Feb 07, 2022 at 05:14:43PM +0000, David Laight wrote: > From: Christoph Hellwig > > Sent: 07 February 2022 06:45 > > > > On Sun, Feb 06, 2022 at 10:36:47AM +0900, Stafford Horne wrote: > > > Remove the address space override API set_fs() used for User Mode Linux. > > > > This ain't UML :) > > > > > + return size <= TASK_SIZE && addr <= (TASK_SIZE - size); > > > > No need for the inner braces. > > Since TASK_SIZE is actually an address wouldn't be better to > swap the condition around (in every architecture). > > return addr <= TASK_SIZE && size <= TASK_SIZE - addr; Hi David, I like that, it is more clear, I will update to that in v3. -Stafford