Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2312074pxb; Wed, 9 Feb 2022 15:54:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJzA0ihVP8I/gTOEZgKAC/3ZWHGwvIKJq8g2h0WbJlaA6J2onMKpsuh9p8H8xiaoxr65aZjc X-Received: by 2002:a65:6e07:: with SMTP id bd7mr3940545pgb.457.1644450862860; Wed, 09 Feb 2022 15:54:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644450862; cv=none; d=google.com; s=arc-20160816; b=fMM3eYiAfMRBq/gsE3uZsEaMtR/bbU59z+QCLpZTF77mwtj3cLSJ21aiUot5S2Ri6D H1qrXd8OA79SvRx1Ht/S74A8HF8aQ5eaQ9mGSOl4l3ZNjO9IPttuQeWnThfwsqd6tZ06 Vp6R83yCu6hwMI9X0KCRmSQXrFRrBBIPc9AicxfACAfnJ3Dq5O9dSjegEUiuqAEuoH38 OB6LmFL0KA9wdCAE3H/rYyce6y+zCMeKihB3wNiLdogU2xNxtw7KxhODgGiQicmPmvYj mt01sARpvs9YxtgZw7KNLGoS2uYnYXXnkfvwV1yYLs55RnoXTOCWVmEqfn9y6gHCLqzK LoBQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dWppND9NpqLN1Tp3iTkqAOomYZbs0nhNFIMKosCdxW0=; b=QiGlSOJMbimUq1vLFjl9Y9BlR7dEs4KuS72q5DOGYj+Zu2CsG06ZpLNAERjw/b6WxZ fgvOtJDGmlZZRE5f5PxLV4180BrC+mmLeNYR3BYgs94CC5j8CsUldD0RiPhLsCzH1ElS bWBUNP/1MfGytiOV/pYmnx/aqT/EZZ/RZVKTgD9s7cTghihVEPb1pI5bgZgsonWEBxhq iVwCYJI+vWEYzEN9Wu2Dh084RydduTHIEB9QuE6xkvabKDWatnoWMpSDwg2r2nm98TtA ET4Z8sl08eJSQnC2eax5ZNs+eYIU7CERVBsDmKp0NqgH1JOBIXGcB5068RHUrlB52GQb voBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=X94PRxzN; 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 l16si449159plg.151.2022.02.09.15.54.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 15:54:22 -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=X94PRxzN; 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 DD7FBE06FB14; Wed, 9 Feb 2022 15:32:04 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230401AbiBIXbx (ORCPT + 99 others); Wed, 9 Feb 2022 18:31:53 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:52674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230468AbiBIXbL (ORCPT ); Wed, 9 Feb 2022 18:31:11 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0D37E0513B7; Wed, 9 Feb 2022 15:31:08 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id qe15so3594670pjb.3; Wed, 09 Feb 2022 15:31:08 -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:content-transfer-encoding:in-reply-to; bh=dWppND9NpqLN1Tp3iTkqAOomYZbs0nhNFIMKosCdxW0=; b=X94PRxzNF33Qcxf5R7s1lyX/ieIFiROBat+v/E4ngT3Odpkh9IKlR4fxWP1VYIrCzy ozOqXf6GSFDXHUe7rvn4IBGuOCM6xR+FzvUrkdE96nd7yVwND98TGu+9mJbK6d1y88kJ PIYbe3CGPu6/vsRQasrjLRhHwrvEP0GIIJJxll8Nd51FSVCFHXVraqzlENB/40ezxQxy aodM+l0wzOVJgjX6G7Agh6rlvLnpOHloK6oEunEM9sbQ/GI7zhweq5VLWV7Z00A0PGPH 6kgbBqGb1YssY/LM/ixONLNSoIOL98zJGStFaJWdOykRb41oJOtDPGyV+5OkP7GOuWRv Dt/g== 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:content-transfer-encoding :in-reply-to; bh=dWppND9NpqLN1Tp3iTkqAOomYZbs0nhNFIMKosCdxW0=; b=lLmIcFhmbznSP5SnbfG3hDe0e0HesmiTSmtf6x0AInHCB1a5Cpud7Gs4DBvbwOE0Zg TauS353ubxlR7h2jOFB99Ui3ml2EzR4g3mwSBl18iexV3rNzpt8w4sNOljCel0i/wM41 95RV/Gny2xjIpredij8u0KLsH8gApzj0ddyVhioCgE1G+qsHlJ8eJKjXcExaojGA3LK9 H2Xj9LFD5IhJiLaM5e8cHWunnUHQA6y4KhlzoYzyY9d8z7kOwAv3pMR4MUStx4lHefS7 +X8LBHP8huA1MnF48VVb46jv9aQ67ec3gG7/JX4S6H+Gwe9Rk9bETChvpHKSpIZ8+qfW CNaQ== X-Gm-Message-State: AOAM532ORWQgl0IeTKZQVTVDUUcwGfspvNWhUC77lEZwwDXbXPF7thtW LlB43JcRuwIWMvPbSC3HytY= X-Received: by 2002:a17:902:7603:: with SMTP id k3mr4816228pll.160.1644449467530; Wed, 09 Feb 2022 15:31:07 -0800 (PST) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id mn7sm6974530pjb.8.2022.02.09.15.31.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 15:31:06 -0800 (PST) Date: Thu, 10 Feb 2022 08:31:05 +0900 From: Stafford Horne To: Arnd Bergmann Cc: Michal Simek , Linux-Arch , LKML , Christoph Hellwig , "Eric W . Biederman" , Al Viro , Linus Torvalds , Arnd Bergmann , Geert Uytterhoeven , "Peter Zijlstra (Intel)" , Catalin Marinas , Mark Rutland Subject: Re: [PATCH] microblaze: remove CONFIG_SET_FS Message-ID: References: <20220117132757.1881981-1-arnd@kernel.org> <126ae5ee-342c-334c-9c07-c00213dd7b7e@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 Wed, Feb 09, 2022 at 03:54:54PM +0100, Arnd Bergmann wrote: > On Wed, Feb 9, 2022 at 3:44 PM Michal Simek wrote: > > On 2/9/22 15:40, Arnd Bergmann wrote: > > > On Wed, Feb 9, 2022 at 2:50 PM Michal Simek wrote: > > >> > > >> Hi Arnd, > > >> > > >> po 17. 1. 2022 v 14:28 odes?latel Arnd Bergmann napsal: > > >>> > > >>> From: Arnd Bergmann > > >>> > > >>> I picked microblaze as one of the architectures that still > > >>> use set_fs() and converted it not to. > > >> > > >> Can you please update the commit message because what is above is not > > >> the right one? > > > > > > Ah, sorry about that. I think you can copy from the openrisc patch, > > > see https://lore.kernel.org/lkml/20220208064905.199632-1-shorne@gmail.com/ > > > > Please do it. You are the author of this patch and we should follow the process. > > Done. > > Looking at it again, I wonder if it would help to use the __get_kernel_nofault() > and __get_kernel_nofault() helpers as the default in > include/asm-generic/uaccess.h. That would make sense. Perhaps also the __range_ok() function from OpenRISC could move there as I think other architectures would also want to use that. > I see it's identical to the openrisc version and would probably be the same > for some of the other architectures that have no other use for > set_fs(). That may > help to do a bulk remove of set_fs for alpha, arc, csky, h8300, hexagon, nds32, > nios2, um and extensa, leaving only ia64, sparc and sh. If you could add it into include/asm-generic/uaccess.h I can test changing my patch to use it. -Stafford