Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1780921pxb; Wed, 9 Feb 2022 04:28:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvZOiL/GvE9opqngjAcQiOmocQ1I+8NdOEy1TUMH3NN9Kb+mkwsiCwJYLoT6DFX8apG1Pi X-Received: by 2002:a65:6287:: with SMTP id f7mr1687578pgv.381.1644409726636; Wed, 09 Feb 2022 04:28:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644409726; cv=none; d=google.com; s=arc-20160816; b=FGOu6E+tam+QreI+9q7rG8GjwvaJ5WgoSh2eqYyAtontFK7s+EfAPvzp7gkU9wS8i+ 5abvcpadbh7eam6N2sQ8YEGuGK3+z1aGNm+Afq1LyhO2z82wVgKUk0Ok0HxA7ZHqiebv CWN0lYoqaMV45KoqYQT6sGyJGPvWFkmibqsB+cSr2vcer8D86y5sNHzIUlZuuAMWnVS1 qXrBN7MFX5lCNhlG629/Un8haeSrMPjpU78O/ullWfrZ0C6BUje0LpUZWB0PL1ElXzqj xfF74UKqvTppwB1/nZMyrEh49e5Rytje6EvHL8qBHdFZg/7Y2VPDJ55PVS+F1p+/vktT dBBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=VxGCa0EsPh93Nle5tQEwNOSk4r0N+m1QIJXtnkqhHb0=; b=G208NUT2cJV97GUeOj66Qmm5UWU1N5950opah68UCO/77kKdbNrSbp+q1wR1kNYfaR 6AuOnmC1Uf/QOwpWWHLrfuUcarp+nGSNmrRxvGtu53RaM1TI0FW4JfDdsX3vDzc/zbTr gNNcXKF/hwcY01QUdGqqZM//wrMd5JZaH9ewNKfT0gsAtpQYu4ENBrRC1UMQMlz8qcn6 vI3VB8Xd8haQEcNb0DGlQu+lRYRDk4oqxs4/8MyzrkOstAt/K5nSv+avbW/S5noczNIT p29uza5v+LH2uicu6/2oLZgqHNnO71tAw/VwixsASi/clwKKoEoHU5vOeFthvfyUFxfN HHDA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id a65si1718643pge.248.2022.02.09.04.28.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 04:28:46 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 131D4E11B4C2; Wed, 9 Feb 2022 02:19:27 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240005AbiBGRXA convert rfc822-to-8bit (ORCPT + 99 others); Mon, 7 Feb 2022 12:23:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382714AbiBGROu (ORCPT ); Mon, 7 Feb 2022 12:14:50 -0500 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 13295C0401D5 for ; Mon, 7 Feb 2022 09:14:48 -0800 (PST) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-261-OsvrFIUnMKKFrChEQsxdNA-1; Mon, 07 Feb 2022 17:14:46 +0000 X-MC-Unique: OsvrFIUnMKKFrChEQsxdNA-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.28; Mon, 7 Feb 2022 17:14:43 +0000 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.028; Mon, 7 Feb 2022 17:14:43 +0000 From: David Laight To: 'Christoph Hellwig' , Stafford Horne CC: LKML , Arnd Bergmann , "Jonas Bonn" , Stefan Kristiansson , Randy Dunlap , "openrisc@lists.librecores.org" Subject: RE: [PATCH] openrisc: remove CONFIG_SET_FS Thread-Topic: [PATCH] openrisc: remove CONFIG_SET_FS Thread-Index: AQHYG/BjkR+ecsCi7UOyp98rZRODA6yIU2uA Date: Mon, 7 Feb 2022 17:14:43 +0000 Message-ID: <3744dcbbf2874875b023548aacdd8b41@AcuMS.aculab.com> References: <20220206013648.3491865-1-shorne@gmail.com> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)