Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1749125pxb; Wed, 9 Feb 2022 03:47:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7YVB77CDvu8LoMokeV7cIkm/4GxWDhNIa4dzP7MoVcwS5fEIEVQWbyQa7qRBg7DiuOlD9 X-Received: by 2002:a05:6a00:1308:: with SMTP id j8mr1908927pfu.34.1644407264374; Wed, 09 Feb 2022 03:47:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644407264; cv=none; d=google.com; s=arc-20160816; b=FqlV8MCU3oJRFR5JplEWovCiJVpRlP6niPaMCVxcfrvIUyfrY2ZWWOxuye14g0dkGU tFu6domOnGnKBfi8NgLpxqN5+fFRco1LFIFBzf5jAiYlgz2XlLIm/+gVVXdZ5Z/L/vTK M7rZ0cQGZyqYB/JH+PZWdiwMoV6huwtCjLr2E5NqamMidbw2U0gpLGL/7dDMkgRtyzjN JfJU++gb5d4ztpuHZQqm/cJZFY0XyZzbhc772NIgh+8SEtYyhh+x52V70RH0U+AbX4H9 yYN2GmTKh6boTfBa1gBU7XHIwZ47O9yomUCQnQSNS64ONANQfGV0MGwUAXy1lRjnoXgg FVXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mXSlfVDKwMF6om0Lh75ktdNJu0SBDC/xJ2BOT9KSvbk=; b=qFZlJJWKk0VX4AVhELa+rD5IF5rwUGLGR6rfemCUXc4nmdKGmMEyOshbMDy6EcwrdG uMaYmKujr+a0RB/LPGBoKSPx3CcKLutHzpiKWwHgYZqFEAb53uDl804O4cTMrXhsP6jE VoIjQ+BzELK7GxVqHmi9fSN3qYm6BRNfIH4wtsQcRjB75/x9VIulqonWALmk6VigHnv/ IVq36cS0I5P4FMDCpOC0GTCvCeWzee6bjZqcwV8i1EN85itMe9d1pibqc8BMTo0xcEAC uA2YWLAc4C74T3E2omWcYXzf7tNJi6C6+QsUwNsE5BXpcFilhA3Ae7kLJBBNcJBszjhA fXJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IiY88wbW; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q2si3620149pgu.560.2022.02.09.03.47.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 03:47:44 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IiY88wbW; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DF189E0DF466; Wed, 9 Feb 2022 01:58:48 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236914AbiBGHbQ (ORCPT + 99 others); Mon, 7 Feb 2022 02:31:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234842AbiBGHYC (ORCPT ); Mon, 7 Feb 2022 02:24:02 -0500 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C1A6C043181 for ; Sun, 6 Feb 2022 23:24:02 -0800 (PST) Received: by mail-pf1-x431.google.com with SMTP id u130so11504657pfc.2 for ; Sun, 06 Feb 2022 23:24:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=mXSlfVDKwMF6om0Lh75ktdNJu0SBDC/xJ2BOT9KSvbk=; b=IiY88wbW2bT/FKAhO9Q8+pXHoM8+Dm0ujhhZ7LHC7ZD3usBEdT4zDn2jtqSa0lk7Xv OtuYgOHMaOUcDsRnosOy/m7eE13l9AHe5wi/LtmOJwIELfkZnOCYXHCe41RFppwRGQKa oWdOcrlq9Bal6R8rnmj84oRYXVyv9OhR1potY2CBx6QsYD89IHuDbkwpFrIN8lbeWKyR jv9ALex9BZ65VHyqtNrg+q1/vBF0CGpcOWv9lJuLFW8w72W296lCZfEXk4k16fhTWAhD 8QGEWAXg2tE0fLDpXEPXnISzSt9BHzpXiHKmkAgZeAZ+02CFG1JN+ddQwMfwzlluGz+5 xszg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=mXSlfVDKwMF6om0Lh75ktdNJu0SBDC/xJ2BOT9KSvbk=; b=4vOGHiQm5ZwGgrAHz2AY1viBaUqz5owTpT1uABX7HkTNENFay+hKkzYAUqgFouoK4N Hk8fXzXppsUs4Awrn7QRaDdEvZgwG10kzpQO3RiJTqUmF6kixqu9pyFZNBuKTrVPpFcy uwhrEcCy/XempmfxIy3DjeaMeJt7YKgoX3jqKYyxtCApHkP7t1auL0j66/mPpxOHuOCs N4aWkPqVDeQSeZXKcZOcgKCDVH9XlWZAXCGfCZ/ZG/p19HrkuM9PCXA3hehYg+alSgoI heKRJECX8jAlUtk5ODEfba2JxjlXJMeHVZ1mmy2uj439WcJRdjyE8gywLZ404VJLxOza BVwQ== X-Gm-Message-State: AOAM532PNQgStFrDKnbFcvuIMF5ZPrJNUE4wlaGSMJmo7fVBuY2oenks S+Ioq5fK2qJ0AIAsSrjfUCA= X-Received: by 2002:a63:6c84:: with SMTP id h126mr8363072pgc.456.1644218641581; Sun, 06 Feb 2022 23:24:01 -0800 (PST) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id s17sm10258932pfk.156.2022.02.06.23.24.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Feb 2022 23:24:00 -0800 (PST) Date: Mon, 7 Feb 2022 16:23:59 +0900 From: Stafford Horne To: Christoph Hellwig Cc: LKML , Arnd Bergmann , Jonas Bonn , Stefan Kristiansson , Randy Dunlap , openrisc@lists.librecores.org Subject: Re: [PATCH] openrisc: remove CONFIG_SET_FS Message-ID: References: <20220206013648.3491865-1-shorne@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 On Sun, Feb 06, 2022 at 10:45:06PM -0800, Christoph Hellwig wrote: > 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 :) Yes, Geert also brought that up. As I mentioned there I took the text from your commit message in commit 8bb227ac34c0 ("um: remove set_fs"). I didn't realize arch/um is for User Model Linux, I always thought um was just some other processor! Next, I thought your comment 'used for User Mode Linux' was just referring to userpsace. Now I get it! I will fix this up in v2. > > + return size <= TASK_SIZE && addr <= (TASK_SIZE - size); > > No need for the inner braces. You mean to just write as: return size <= TASK_SIZE && addr <= TASK_SIZE - size; I prefer keeping the braces around (TASK_SIZE - size). -Stafford