From patchwork Tue Sep 1 14:15:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 11748267 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 5175814E5 for ; Tue, 1 Sep 2020 14:16:53 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 1129A206EB for ; Tue, 1 Sep 2020 14:16:53 +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="WzUBSHiE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1129A206EB 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 0D46A900009; Tue, 1 Sep 2020 10:16:52 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 0AB17900002; Tue, 1 Sep 2020 10:16:52 -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 F0321900009; Tue, 1 Sep 2020 10:16:51 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0005.hostedemail.com [216.40.44.5]) by kanga.kvack.org (Postfix) with ESMTP id DA304900002 for ; Tue, 1 Sep 2020 10:16:51 -0400 (EDT) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 55348180ACF17 for ; Tue, 1 Sep 2020 14:16:51 +0000 (UTC) X-FDA: 77214693822.04.smile86_3c17ae827098 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin04.hostedemail.com (Postfix) with ESMTP id 9E26080039AF for ; Tue, 1 Sep 2020 14:16:46 +0000 (UTC) X-Spam-Summary: 1,0,0,32e8281ff5103935,d41d8cd98f00b204,npiggin@gmail.com,,RULES_HIT:41:69:355:379:541:800:960:973:988:989:1260:1311:1314:1345:1359:1431:1437:1515:1534:1541:1711:1730:1747:1777:1792:1978:1981:2194:2199:2393:2559:2562:2693:3138:3139:3140:3141:3142:3353:3865:3867:3870:3871:3873:3874:4321:5007:6261:6653:7514:7903:9413:9592:10004:11026:11232:11473:11657:11658:11914:12043:12109:12296:12297:12438:12517:12519:12555:12895:13069:13311:13357:13894:14096:14181:14384:14394:14687:14721:21080:21433:21444:21451:21627:21666:21990:30054:30064:30075,0,RBL:209.85.214.195:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100;04ygzitoy6dpjay38cxy8yqkaz9s6yc61e6z6dw9mf9fmre8nyz8d777cepegiq.5pqimwxn3r7crnjs5opkgtczfknyckt8twsaxd1m6ndcnbk1qiynitxpqnq9bbb.e-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:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: smile86_3c17ae827098 X-Filterd-Recvd-Size: 4887 Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by imf17.hostedemail.com (Postfix) with ESMTP for ; Tue, 1 Sep 2020 14:16:38 +0000 (UTC) Received: by mail-pl1-f195.google.com with SMTP id c15so604687plq.4 for ; Tue, 01 Sep 2020 07:16:38 -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=rF0Gg/FItWzC1FRYFQdU1CM/THHapJ9NmHYGWF5PYaM=; b=WzUBSHiEEVYXLd5qlbZdiTvUByjDNOOf/Vsr/o61BzXL5UVg5zTZaZdPeuvbkS/Onv PCxIHdjkMKd9h4n6CHNnM+ryyaQk7hrcFKcdjwpda651L51ULnlRBFAZGUDAS0lEQ9JC MqiO+WgIQlS+BXH2RhGdF7iXG7+npVOWpxDv0K7xslMLxEoW1kjP6Zk4rDTzL79/ButI 4ao2BB6glSpr/ad775rxf48hwFYzkoC93QbS0sYI1061h63ba1DWuXWX2LQAp1/9Syy1 B8ESXA+bCOAbmc9fBwpbDG+OK+i0TVEhGJbT6408kUMiORSNRhdo5x8CqTo+TgkHoQGh 7ZAA== 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=rF0Gg/FItWzC1FRYFQdU1CM/THHapJ9NmHYGWF5PYaM=; b=iXTNQFOKFBFV1Wzuax1mJPbf1f7lnl4iUSoq8Rnm/gZJAfnu/hJngPD9e4DYblqHui eGBcvdHG7SgAEuacLM7+WHhSDZk6anhO+sH1D27aXLJbTAcj9nIoESGAjpelzrrZxZRe kYcY17byKKUCjP4vXLiWNvg4pdCbH2tmI4/VIQueSa16vDVGsD3J2O/tFxGBExYRKzSi eYzOEAjYvnMWkVcZvrD4pXXkEKCvKLPzjUxb9IZMk7SW/ck8W4YLqcf2MKp733WokHW+ L05elmsJ/8UZUW2C9dgAmpTeUyHlwHzlS+VcRvxJOwPxPAmuLBFJpsPJ10aTVF+6rgIi ONMg== X-Gm-Message-State: AOAM530ATAgNX9+IbwB8c+oG4/mQjimYVKP/of5qlgmtAZP4G0AUAkVS equUF5DseCdu63LpKHLsYKI= X-Google-Smtp-Source: ABdhPJxAWHVJz4qjW72EohwUKHF1cKxUaKdI5k8vecTZBIbH6qy//hJ4IaY8hwl1kx3ydSR74SPQwA== X-Received: by 2002:a17:90a:4541:: with SMTP id r1mr1818789pjm.88.1598969797778; Tue, 01 Sep 2020 07:16:37 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 07:16:37 -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 , Ley Foon Tan Subject: [PATCH v3 13/23] nios2: use asm-generic/mmu_context.h for no-op implementations Date: Wed, 2 Sep 2020 00:15:29 +1000 Message-Id: <20200901141539.1757549-14-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: 9E26080039AF X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 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: Ley Foon Tan Signed-off-by: Nicholas Piggin --- Please ack or nack if you object to this being mered via Arnd's tree. arch/nios2/include/asm/mmu_context.h | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/arch/nios2/include/asm/mmu_context.h b/arch/nios2/include/asm/mmu_context.h index 78ab3dacf579..4f99ed09b5a7 100644 --- a/arch/nios2/include/asm/mmu_context.h +++ b/arch/nios2/include/asm/mmu_context.h @@ -26,16 +26,13 @@ extern unsigned long get_pid_from_context(mm_context_t *ctx); */ extern pgd_t *pgd_current; -static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) -{ -} - /* * Initialize the context related info for a new mm_struct instance. * * Set all new contexts to 0, that way the generation will never match * the currently running generation when this context is switched in. */ +#define init_new_context init_new_context static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm) { @@ -43,26 +40,16 @@ static inline int init_new_context(struct task_struct *tsk, return 0; } -/* - * Destroy context related info for an mm_struct that is about - * to be put to rest. - */ -static inline void destroy_context(struct mm_struct *mm) -{ -} - void switch_mm(struct mm_struct *prev, struct mm_struct *next, struct task_struct *tsk); -static inline void deactivate_mm(struct task_struct *tsk, - struct mm_struct *mm) -{ -} - /* * After we have set current->mm to a new value, this activates * the context for the new mm so we see the new mappings. */ +#define activate_mm activate_mm void activate_mm(struct mm_struct *prev, struct mm_struct *next); +#include + #endif /* _ASM_NIOS2_MMU_CONTEXT_H */