From patchwork Tue Sep 1 14:15:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 11748271 Return-Path: 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 A73E3138A for ; Tue, 1 Sep 2020 14:17:07 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6F33D206FA for ; Tue, 1 Sep 2020 14:17:07 +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="dH53Fvbw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6F33D206FA 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 7FE3E90000A; Tue, 1 Sep 2020 10:17:06 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 7AED8900002; Tue, 1 Sep 2020 10:17:06 -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 69E9F90000A; Tue, 1 Sep 2020 10:17:06 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0228.hostedemail.com [216.40.44.228]) by kanga.kvack.org (Postfix) with ESMTP id 50FBB900002 for ; Tue, 1 Sep 2020 10:17:06 -0400 (EDT) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 0FE338248076 for ; Tue, 1 Sep 2020 14:17:06 +0000 (UTC) X-FDA: 77214694452.24.tin22_3e16f7b27098 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin24.hostedemail.com (Postfix) with ESMTP id 4C3511A4D0 for ; Tue, 1 Sep 2020 14:17:00 +0000 (UTC) X-Spam-Summary: 1,0,0,633709604435f7fa,d41d8cd98f00b204,npiggin@gmail.com,,RULES_HIT:41:355:379:541:800:960:966:973:988:989:1260:1311:1314:1345:1359:1431:1437:1515:1534:1541:1711:1730:1747:1777:1792:1978:1981:2194:2196:2199:2200:2393:2559:2562:3138:3139:3140:3141:3142:3352:3867:4321:4385:5007:6261:6642:6653:7514:8957:9413:9592:10004:11026:11657:11658:11914:12043:12109:12296:12297:12517:12519:12555:12895:12986:13069:13255:13311:13357:13894:14093:14096:14181:14384:14394:14687:14721:21080:21433:21444:21450:21451:21627:21666:21990:30054,0,RBL:209.85.214.195:@gmail.com:.lbl8.mailshell.net-66.100.201.100 62.50.0.100;04ygxud43sn73hg5q7a3czzj8hs9socz8kwgyij5137q849tiuyttozbyybd887.r3ab3e9md9nyr8onuky1od9ihjjbssnw4jyfhim4rchcpct1i1d7iwwtg3j3mht.o-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:26,LUA_SUMMARY:none X-HE-Tag: tin22_3e16f7b27098 X-Filterd-Recvd-Size: 4824 Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by imf30.hostedemail.com (Postfix) with ESMTP for ; Tue, 1 Sep 2020 14:16:46 +0000 (UTC) Received: by mail-pl1-f195.google.com with SMTP id bh1so588666plb.12 for ; Tue, 01 Sep 2020 07:16:46 -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=y4GBbdasJ+e4fXYSTpkmty5k9s9dG8wP/iD9sZCcgX8=; b=dH53FvbwzWxDPpzL9QLv3ud71sC04i3yZyx9BEpedyXYGMjxGjGFMSmDwQcpfzAEEy vpSo5/Ssw929AdvF66gJ4EUjNg01+rqWJADkqajPmugZI1cbQAXmVSj6ATR4mATxYZqH StOhG2/Q59wO/SBRFJMcUkKHyQoQdbKQJlED2G3mJ7htzmdI0Zh2Zdhs0Cv3n/p+oH/1 kE0qTNQ3Bqmrx7ekV15OYdhIAub17fAkyfseKS7B2buMfZ/qQBoGhcxLveEZcA75ymJP y6PMCBs43bHoN7cVjZVwPskK2amXulF6VSw3I15761Sa+g80a4BKj9qIorWICbpQQ+KC ENKw== 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=y4GBbdasJ+e4fXYSTpkmty5k9s9dG8wP/iD9sZCcgX8=; b=HRH+vk78Au7nBe9SQ1O9gfZha7rKhZ2AZgsG3NJC+dFB0q4HYbnEprvTKmYARELCp0 /PF6hgyqbY+CjLomNV4JnmSIekj15dBdhOY+dYcIIHLd58xucYPMyjhb2zNO5Nwn00Mh +vbXf3IMjicaxpvdX0QBnWS1FQ+Kbanj13z+uZGgtv7eNzJWnU7Dwhatfo7oT+lO7lAt 0a9Tnq1HX2VSj1m2yDuZxrJN0flLwezpczprV7/TJAPz/qyDnFm+FoUwAMIfoZiR2D4C cNn+R9x/Yz2J1y70jEdeZ4r5jEMcSqOcfHbSLnuLZgQrKY4k/K2Sdv1xPTlEY49rkauS Hvng== X-Gm-Message-State: AOAM530Bu2pwUvYeyPd1Hpm/bYB1+C7EsXtnMwsKJHRg5/S4OAnMKP+K Ffmb9Ndi6JodEKT8H975qjQ= X-Google-Smtp-Source: ABdhPJzG/volX6VbEzTef+Kk6CT0A/sPbJrNNCyu6DH4e9IuiAX8jzUmomEjOSXABzmiyGq1oa2Vnw== X-Received: by 2002:a17:902:7d85:: with SMTP id a5mr1644916plm.148.1598969805983; Tue, 01 Sep 2020 07:16:45 -0700 (PDT) Received: from bobo.ibm.com ([203.185.249.227]) by smtp.gmail.com with ESMTPSA id w9sm2212816pgg.76.2020.09.01.07.16.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 07:16:45 -0700 (PDT) From: Nicholas Piggin To: linux-arch@vger.kernel.org Cc: Nicholas Piggin , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Arnd Bergmann , "James E.J. Bottomley" , linux-parisc@vger.kernel.org, Helge Deller Subject: [PATCH v3 15/23] parisc: use asm-generic/mmu_context.h for no-op implementations Date: Wed, 2 Sep 2020 00:15:31 +1000 Message-Id: <20200901141539.1757549-16-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200901141539.1757549-1-npiggin@gmail.com> References: <20200901141539.1757549-1-npiggin@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4C3511A4D0 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 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: Cc: "James E.J. Bottomley" Cc: linux-parisc@vger.kernel.org Acked-by: Helge Deller Signed-off-by: Nicholas Piggin --- arch/parisc/include/asm/mmu_context.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/parisc/include/asm/mmu_context.h b/arch/parisc/include/asm/mmu_context.h index cb5f2f730421..46f8c22c5977 100644 --- a/arch/parisc/include/asm/mmu_context.h +++ b/arch/parisc/include/asm/mmu_context.h @@ -7,16 +7,13 @@ #include #include -static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) -{ -} - /* on PA-RISC, we actually have enough contexts to justify an allocator * for them. prumpf */ extern unsigned long alloc_sid(void); extern void free_sid(unsigned long); +#define init_new_context init_new_context static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm) { @@ -26,6 +23,7 @@ init_new_context(struct task_struct *tsk, struct mm_struct *mm) return 0; } +#define destroy_context destroy_context static inline void destroy_context(struct mm_struct *mm) { @@ -71,8 +69,7 @@ static inline void switch_mm(struct mm_struct *prev, } #define switch_mm_irqs_off switch_mm_irqs_off -#define deactivate_mm(tsk,mm) do { } while (0) - +#define activate_mm activate_mm static inline void activate_mm(struct mm_struct *prev, struct mm_struct *next) { /* @@ -90,4 +87,7 @@ static inline void activate_mm(struct mm_struct *prev, struct mm_struct *next) switch_mm(prev,next,current); } + +#include + #endif