Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2037606pxb; Wed, 9 Feb 2022 09:34:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwK6J9tFkyTGUu36z5lScshN8/9sZWmHQQ7JsOKKXkdQ94rSp0LKtbPBJkGcomwb4iBNDKM X-Received: by 2002:a17:906:74d3:: with SMTP id z19mr266181ejl.297.1644428048122; Wed, 09 Feb 2022 09:34:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644428048; cv=none; d=google.com; s=arc-20160816; b=seTKfPS3vzJblsx1GHBOy+w5e+4n5K6CuftLlXjjgVnH23dH1lLqYs8/jxJLbQg7ss 4yNi90hxe+oR2H2CbaVggWGvV0T1fn1PGt1JEG3+gA/qG6Oq+9JjQOVpP8Nu6684IlfM 8nCr3pDXA9yl/CXjSLte/9pr2djgLrmr2nz3XTjtdXhew8zCEyTVAh0Kh05zenHIfD8h ZBidEgBDZIyhhNQ6hMLuL1RJBtOXTgyLeFad3cdzM/UP0rm9ydY/xSOBhR8lR/6Xbj83 1IPsylvbyPFyJ8azNbV+3QF4GqIghUbjn8myg0acAxlWgRyx7l7Q+D0gasenQh5HqRFk SGCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=MCUrkLTGy2yKeq2PswPyBuPBstve0urLtZYl4NB8RZo=; b=vuu27qjrl5bVxqWCTK4wS7eLtxAsRHj0yofUtP63Ykk+vlWfIw/8LO6Q1x0WAIm1YW +56W/UCFadliUCGZeiLwJ62tJ8zzwyzbTKXPoJSQxDOZ9GxoNM2wy5sLY/F/WJ2NH5Kl nzey7NMUuZ09opjgntqBRV8+AOAYQvlpXvtPvUQdvxUWd2bn9le1yA/A9mPyq81JetUN 0zCtkumhqP42eEVW5CTkWAmw8sqfLyVy+xfAFvHrTDpdTg9Zp78w59RIyOjzCDMXmDAV mMjoifLDKubJ2imYLV1jorXb1a96YrHI22MBYsiX/zkprg/03+CnHEjXiR86Memf+cdj 2pTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q8o00BHm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si6425797edq.503.2022.02.09.09.33.41; Wed, 09 Feb 2022 09:34:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q8o00BHm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235335AbiBIOzO (ORCPT + 99 others); Wed, 9 Feb 2022 09:55:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbiBIOzM (ORCPT ); Wed, 9 Feb 2022 09:55:12 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FB46C061355; Wed, 9 Feb 2022 06:55:15 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E1797B821FA; Wed, 9 Feb 2022 14:55:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87EC4C340E7; Wed, 9 Feb 2022 14:55:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644418512; bh=ULKfYtK5+8ILP+G8NhZQoQ7aqzNgMQ+Hnh15IDDeAqM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=q8o00BHmJKljdOO7la/ECM/4SoJtkoFxu91EerYHgxRRfOZXVvWb8mARn1o4UJ5Y4 uzB6EmW5eog7zQh1EAd6gOuTHOOUsbgMm/TLN7Npz/WH7YOc4lQhrtQ0BQTUi7gTGv JKUp9g6DgkF4InoI84IMEeNdY/d0lCiUkgJdMp8qIOVquOfLAdaouvutUzjWGyWLhS 3WE/FalbPx1glK5Bli1KwQhcJH+ApuihVAgmroSyYT7jSCBWNFZG3Q2Q/OXyTeexeK 0hrWuQ2/Ygjk1YvscXjt+vSldB6alo4+9/56qEUbhvIoScxa0qCBM0Z2fx1XnRQR5C F90i3eSN4udfw== Received: by mail-wr1-f45.google.com with SMTP id e3so4612925wra.0; Wed, 09 Feb 2022 06:55:12 -0800 (PST) X-Gm-Message-State: AOAM533HiPUI63kgO0HTj6l+W2UvdqGLn9sJLZJrJ+ugLrqPYS23IbYw WrQCK4YTjt+fh+CRu8TQIibZBOSXVdsABPPg6qs= X-Received: by 2002:a05:6000:178d:: with SMTP id e13mr2343920wrg.317.1644418510880; Wed, 09 Feb 2022 06:55:10 -0800 (PST) MIME-Version: 1.0 References: <20220117132757.1881981-1-arnd@kernel.org> <126ae5ee-342c-334c-9c07-c00213dd7b7e@xilinx.com> In-Reply-To: <126ae5ee-342c-334c-9c07-c00213dd7b7e@xilinx.com> From: Arnd Bergmann Date: Wed, 9 Feb 2022 15:54:54 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] microblaze: remove CONFIG_SET_FS To: Michal Simek Cc: Linux-Arch , LKML , Christoph Hellwig , "Eric W . Biederman" , Al Viro , Linus Torvalds , Arnd Bergmann , Geert Uytterhoeven , "Peter Zijlstra (Intel)" , Catalin Marinas , Mark Rutland Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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=C3=ADlatel 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.c= om/ > > Please do it. You are the author of this patch and we should follow the p= rocess. Done. Looking at it again, I wonder if it would help to use the __get_kernel_nofa= ult() and __get_kernel_nofault() helpers as the default in include/asm-generic/uaccess.h. 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, nd= s32, nios2, um and extensa, leaving only ia64, sparc and sh. Arnd