Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3989334ybc; Thu, 21 Nov 2019 17:28:30 -0800 (PST) X-Google-Smtp-Source: APXvYqw5PrgZNGOp1LFCmeKArQQPEBnYNv3t2L3YmTnBo2ajXwQavRDFmqFv54/TB1gOxNp37+yo X-Received: by 2002:a17:906:bce5:: with SMTP id op5mr18380947ejb.325.1574386110216; Thu, 21 Nov 2019 17:28:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574386110; cv=none; d=google.com; s=arc-20160816; b=qyMFJhWQQUsLIao+aBwQMqCutOB902Ul7LmHGs6ZZVD37Fmva2J+xhHmNG3qI8J9dK Yy9Z9Rzy02KO+Y4dunotCwY0HesD5RDtvhyK0wyKF3yJ+qINf7SX1iw0y0TQu9GPRZht iaxsrv8LtnZMsxZDVw3luUwDculGUoQSMSMxktGBo8AJLZpVa4WQBRDNfELhzUjseHmh krOPl7CGWetTeYoXk9N8VwFtliC8gqhxKVbJ2DcKF/o+MTMA32WRfkky+qzgfIDgv/q+ sxMfQAQgnLMO/pefIO7s8xcvzhV/aofy+yp9n/vxiLPejhJLNZmdfv9WisY2WtPD9P/w S33A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=TU/4Ef2jiJlWVCQ4cQLrxn75XZh8TZ+zwtkucEXiu6Y=; b=co6sQYnHlb6lRFhvuXBex+K2iArK2mmaLJ4i43sQzzU/PKCKqd2EpG2r9I0xuwzM5F SR6mwbqsMGLxHr7d2x7zVFVte66eNgXZGjQhQvQxwQUfCucNfSFBI497LtGlwuudDY7k RtNmKgzAhYjb5RttXcLSG6XhNhZn97DtQdnjdgDKTP7Gu0DVgKSvRpudVdO/3kB7xMCN tDluycaMpzPvUMIEDzQXVfCEEKOvqVRyihxyD6lA5R9ejRSFt8t4Ud8jaAD/77Zn6Ytx yHB2wZp3e/hVFIdp6apAEG8dHgfn6c3NVwu+bSFmxA/gHawYEMRthx3QkW7S+eSB2uY1 dX0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m2BETWVp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h58si1088072eda.18.2019.11.21.17.28.03; Thu, 21 Nov 2019 17:28:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m2BETWVp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726792AbfKVB1C (ORCPT + 99 others); Thu, 21 Nov 2019 20:27:02 -0500 Received: from mail-pj1-f65.google.com ([209.85.216.65]:46321 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726335AbfKVB07 (ORCPT ); Thu, 21 Nov 2019 20:26:59 -0500 Received: by mail-pj1-f65.google.com with SMTP id a16so2307224pjs.13 for ; Thu, 21 Nov 2019 17:26:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TU/4Ef2jiJlWVCQ4cQLrxn75XZh8TZ+zwtkucEXiu6Y=; b=m2BETWVpqlllD08mHYTdBJVrgblUy6CNB+DVYcBf9k1lTWIC7q1zlf4DUt7C76yvFH G6g+FzKXJOEn6Vlo815oRlNBTnuOYeh6pCdoJ1hx+Svn5rOtOL1wNOb+UEMgHBUphhlH P8cv6J335QcanJ1JahmxBQ5wp52tqT2vEclNYvdd1JfgV6k5eQEDGUUqW3uoh8dfQHoS 9xXdeB8VoyFb6OzA2Q8Ztk9qWRPfX+qdV3hUp7yzrKXrqPW/4+evxgguDIUq/jyml/xl uRx2Z/AjTUK5d/DHjDDKOSV8NRou6QR+IdZLRPjDl5zRTY1jkB6dh0gQ9Z1oePhabV1F e0EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TU/4Ef2jiJlWVCQ4cQLrxn75XZh8TZ+zwtkucEXiu6Y=; b=AHTxLafqfpreU2VsAIFgv7TWWNECgxywA02fZa6riGMS5k40L7Mh9e97A9268eKkm/ 30A3ftCwgU81ISjn3dRrvenF5EPsqSNrFinOuV1KoZEam2gcx+YQe7X2UmxSmHnw/WLn 71lvgiOZ8fEy7BqHy/eNH/hsqbiqZQ3CprSu9KMEisapqWXAZCXk07JvIMJVY7EElacK j07bR/Aa3pGB/OXYBDUy0YO41+L8c5dMlkziVmW5MN8+udgJnpyo9IQLFNJpoPxqHSce IYK1vquwxkbwiVAd81qWrzceC5AcjYZ+JTabMWpXxAi7A3c44BDxcvzV+e2dyhvl9fDL d5tw== X-Gm-Message-State: APjAAAWZBVcjBWTiieQzbYCab/tNYdlqiR5ApgEHCcBCNwnr9TnDLO+o N0X9405PnpLPyFLKPtpFsG/LAc6mgiRTE5sKrPutvlvB X-Received: by 2002:a17:90a:d818:: with SMTP id a24mr14948297pjv.40.1574386018942; Thu, 21 Nov 2019 17:26:58 -0800 (PST) MIME-Version: 1.0 References: <20191121184805.414758-1-pasha.tatashin@soleen.com> <20191121184805.414758-4-pasha.tatashin@soleen.com> In-Reply-To: <20191121184805.414758-4-pasha.tatashin@soleen.com> From: Max Filippov Date: Thu, 21 Nov 2019 17:26:47 -0800 Message-ID: Subject: Re: [PATCH 3/3] arm64: remove the rest of asm-uaccess.h To: Pavel Tatashin Cc: jmorris@namei.org, Sasha Levin , LKML , Catalin Marinas , Will Deacon , steve.capper@arm.com, linux-arm-kernel@lists.infradead.org, marc.zyngier@arm.com, James Morse , vladimir.murzin@arm.com, Mark Rutland , Thomas Gleixner , Greg Kroah-Hartman , allison@lohutok.net, info@metux.net, alexios.zavras@intel.com, Stefano Stabellini , boris.ostrovsky@oracle.com, jgross@suse.com, Stefan Agner , Masahiro Yamada , xen-devel@lists.xenproject.org, Russell King Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 21, 2019 at 10:50 AM Pavel Tatashin wrote: > > The __uaccess_ttbr0_disable and __uaccess_ttbr0_enable, > are the last two macros defined in asm-uaccess.h. > > Replace them with C wrappers and call C functions from > kernel_entry and kernel_exit. > > Signed-off-by: Pavel Tatashin > --- > arch/arm64/include/asm/asm-uaccess.h | 38 ---------------------------- > arch/arm64/kernel/entry.S | 6 ++--- > arch/arm64/lib/clear_user.S | 2 +- > arch/arm64/lib/copy_from_user.S | 2 +- > arch/arm64/lib/copy_in_user.S | 2 +- > arch/arm64/lib/copy_to_user.S | 2 +- > arch/arm64/mm/cache.S | 1 - > arch/arm64/mm/context.c | 12 +++++++++ > arch/xtensa/kernel/coprocessor.S | 1 - > 9 files changed, 19 insertions(+), 47 deletions(-) > delete mode 100644 arch/arm64/include/asm/asm-uaccess.h [...] > diff --git a/arch/xtensa/kernel/coprocessor.S b/arch/xtensa/kernel/coprocessor.S > index 80828b95a51f..6329d17e2aa0 100644 > --- a/arch/xtensa/kernel/coprocessor.S > +++ b/arch/xtensa/kernel/coprocessor.S > @@ -18,7 +18,6 @@ > #include > #include > #include > -#include > #include > #include > #include This is not related to arm64 or to the changes in the description, but the change itself is OK. Whether you keep it in this patch, or choose to split it out feel free to add Acked-by: Max Filippov # for xtensa bits -- Thanks. -- Max