Message ID | 20200826145249.745432-22-npiggin@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=dJX+=CE=kvack.org=owner-linux-mm@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EC792109B for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 26 Aug 2020 14:54:21 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B916E2078D for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 26 Aug 2020 14:54:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="h+8as9tl" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B916E2078D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 8BCF06B000D; Wed, 26 Aug 2020 10:54:20 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 8479C6B000E; Wed, 26 Aug 2020 10:54:20 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 734986B0031; Wed, 26 Aug 2020 10:54:20 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0075.hostedemail.com [216.40.44.75]) by kanga.kvack.org (Postfix) with ESMTP id 59B5B6B000D for <linux-mm@kvack.org>; Wed, 26 Aug 2020 10:54:20 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id F20BF180AD802 for <linux-mm@kvack.org>; Wed, 26 Aug 2020 14:54:19 +0000 (UTC) X-FDA: 77193015480.15.need36_2607cca27065 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin15.hostedemail.com (Postfix) with ESMTP id BD3FD1814B0C7 for <linux-mm@kvack.org>; Wed, 26 Aug 2020 14:54:19 +0000 (UTC) X-Spam-Summary: 1,0,0,d85c0d1c1988ac8a,d41d8cd98f00b204,npiggin@gmail.com,,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1311:1314:1345:1359:1431:1515:1534:1541:1711:1730:1747:1777:1792:1978:1981:2194:2199:2393:2559:2562:3138:3139:3140:3141:3142:3352:3876:3877:4321:5007:6114:6261:6642:6653:7514:9413:9592:10004:11026:11657:11658:11914:12043:12109:12296:12297:12438:12517:12519:12555:12895:12986:13069:13311:13357:13894:14096:14181:14384:14394:14687:14721:21080:21433:21444:21451:21627:21666:30054,0,RBL:209.85.214.193:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100;04y8skt6iku6hb46q7moeu63wpwncyccuezsmjci4cuhcgpuumjxef59mh1adaa.cpet4mugxytmttz31iz64yi9hojpoxkhy4wjkq47qhdj4mqhcrmrijiaeq9j9mb.k-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: need36_2607cca27065 X-Filterd-Recvd-Size: 4517 Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by imf09.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Wed, 26 Aug 2020 14:54:19 +0000 (UTC) Received: by mail-pl1-f193.google.com with SMTP id k13so1006813plk.13 for <linux-mm@kvack.org>; Wed, 26 Aug 2020 07:54:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TLftXOcS4N1axvHYvNR3psZ5Pupt2KMXRpE+cNBZQz4=; b=h+8as9tlv5ux5IQCqr3hscD6N/pmC+Wc6VPju2QFl5v6kzwYhPJO8RsIQeyHOC1fVz QUYdiNwWE4QXeckcOsqZG69lZPhwPQDudhfDHA1FP9NTmIO0H+IX1WhmIdK+AGVzIIGg Or4/4wk1ovFXTUAZ3toDQIJaDHtFE3g3ML9dw/autaPYxIqbhomd8G7KuJ71s2d+72E5 o/du8hS0FBQ8RrHQ2AdwV7bpyG2xmiGu+yWLrmMiirIZMzRI80FeKjrxehK9LBFqMaUT cTUB3tFOIqrTt9ve2dUNm8QuGY3LfiVxWte5OaYHMIjBIpU53SOb+1NaYg/N3Q1DMB55 T0gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TLftXOcS4N1axvHYvNR3psZ5Pupt2KMXRpE+cNBZQz4=; b=rhxcSvouqWQTFcwE0b0C4vdMb5DCSCyoPxrKsA5LcOqO9hTrvrMv+oy3v0BjMvP1wV ZIKScbMis6Iegd/BnyhAnGmC7AoYCIBuzGYoU5SUP4/iSXetknjOEEZ5qs61sOFXEgSc ZJJWvKNP9pHY9JFcUfauJRjwE5nhPYLJ3iy0fcA4QqeTDjKJWvX7Z2er3t9PgAKpRUJv TnF2gQ/DOwoHg5oX1JZAxqGUhTHWQsK6JrGwwH7LL6mgGUkPDg1t7ruGz7RTmAKTHY8T VgpoOcDFdjvs20FmlPBMXXHj06wgArSloybsklRSaD6aTkx1Ki1eMkO9bevMpMkNhlwm wbSg== X-Gm-Message-State: AOAM533yxTMuVUoEpDwNC5qZ/6f/drhzGUDRFO24FNg8hv8MWJlfOcyu ZLiRk1GCofwlHscFSVH/gfE= X-Google-Smtp-Source: ABdhPJxeCSFNxaEs0Oh6/0xBgDvajE9o11K0FGBreVXQ5pkS9c155AGVPSg8XPWxEkMerUrM1eKtEA== X-Received: by 2002:a17:90a:4586:: with SMTP id v6mr5935973pjg.152.1598453658525; Wed, 26 Aug 2020 07:54:18 -0700 (PDT) Received: from bobo.ozlabs.ibm.com (61-68-212-105.tpgi.com.au. [61.68.212.105]) by smtp.gmail.com with ESMTPSA id r7sm3327140pfl.186.2020.08.26.07.54.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 07:54:18 -0700 (PDT) From: Nicholas Piggin <npiggin@gmail.com> To: linux-arch@vger.kernel.org Cc: Nicholas Piggin <npiggin@gmail.com>, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Arnd Bergmann <arnd@arndb.de>, Jeff Dike <jdike@addtoit.com>, Richard Weinberger <richard@nod.at>, Anton Ivanov <anton.ivanov@cambridgegreys.com>, linux-um@lists.infradead.org Subject: [PATCH v2 21/23] um: use asm-generic/mmu_context.h for no-op implementations Date: Thu, 27 Aug 2020 00:52:47 +1000 Message-Id: <20200826145249.745432-22-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200826145249.745432-1-npiggin@gmail.com> References: <20200826145249.745432-1-npiggin@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: BD3FD1814B0C7 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam03 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Use asm-generic for mmu_context no-op functions
|
expand
|
diff --git a/arch/um/include/asm/mmu_context.h b/arch/um/include/asm/mmu_context.h index 17ddd4edf875..f8a100770691 100644 --- a/arch/um/include/asm/mmu_context.h +++ b/arch/um/include/asm/mmu_context.h @@ -37,10 +37,9 @@ static inline bool arch_vma_access_permitted(struct vm_area_struct *vma, * end asm-generic/mm_hooks.h functions */ -#define deactivate_mm(tsk,mm) do { } while (0) - extern void force_flush_all(void); +#define activate_mm activate_mm static inline void activate_mm(struct mm_struct *old, struct mm_struct *new) { /* @@ -66,13 +65,12 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, } } -static inline void enter_lazy_tlb(struct mm_struct *mm, - struct task_struct *tsk) -{ -} - +#define init_new_context init_new_context extern int init_new_context(struct task_struct *task, struct mm_struct *mm); +#define destroy_context destroy_context extern void destroy_context(struct mm_struct *mm); +#include <asm-generic/mmu_context.h> + #endif
Cc: Jeff Dike <jdike@addtoit.com> Cc: Richard Weinberger <richard@nod.at> Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com> Cc: linux-um@lists.infradead.org Signed-off-by: Nicholas Piggin <npiggin@gmail.com> --- arch/um/include/asm/mmu_context.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)