From patchwork Tue Sep 1 14:15:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 11748355 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 31F8D138A for ; Tue, 1 Sep 2020 14:26:25 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id F2473206EB for ; Tue, 1 Sep 2020 14:26:24 +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="GU7uDdqV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F2473206EB 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 26A4890001C; Tue, 1 Sep 2020 10:26:24 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 1F235900008; Tue, 1 Sep 2020 10:26:24 -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 0E33B90001C; Tue, 1 Sep 2020 10:26:24 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0202.hostedemail.com [216.40.44.202]) by kanga.kvack.org (Postfix) with ESMTP id EB260900008 for ; Tue, 1 Sep 2020 10:26:23 -0400 (EDT) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 8CF1533C4 for ; Tue, 1 Sep 2020 14:26:23 +0000 (UTC) X-FDA: 77214717846.16.burn33_4f0641b27099 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin16.hostedemail.com (Postfix) with ESMTP id DF20D100E691E for ; Tue, 1 Sep 2020 14:26:19 +0000 (UTC) X-Spam-Summary: 1,0,0,7d948e09882b6127,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:2198:2199:2200:2393:2559:2562:3138:3139:3140:3141:3142:3352:3876:3877:5007:6114:6261:6642:6653:7514:9413:9592:10004:11026:11657:11658:11914:12043:12109:12296:12297:12517:12519:12555:12895:13069:13311:13357:13894:14096:14181:14384:14394:14687:14721:21080:21433:21444:21451:21627:21666:21990:30054,0,RBL:209.85.167.196:@gmail.com:.lbl8.mailshell.net-66.100.201.100 62.18.0.100;04yf9aqzfah9dcuc5xcpzxmt114c3opfxtkeht4zcnyra4hr8wxthoj1cwkgcc5.btff48ry6equygf1n3nkhqqgna68u8dsqd5a8pmu3wij5a18abfp9myj96ry79h.n-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: burn33_4f0641b27099 X-Filterd-Recvd-Size: 4623 Received: from mail-oi1-f196.google.com (mail-oi1-f196.google.com [209.85.167.196]) by imf36.hostedemail.com (Postfix) with ESMTP for ; Tue, 1 Sep 2020 14:26:02 +0000 (UTC) Received: by mail-oi1-f196.google.com with SMTP id d189so1290673oig.12 for ; Tue, 01 Sep 2020 07:26:02 -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=84583yIct+fNxRagU/I0oUzZetXb7oFAI3KOXHJQqUA=; b=GU7uDdqVLUXKlAy3ozm0T+bJe+nzKjD23SlxSVkft4wTgJRBROxw7gJGPyomn8qCwH u/cEKVj5SDdbQtMOphIetJLDAXtVhGEVZYMjphPH4q2SjibPLqfI6aH4tu0nWrhJfrVT h+KHgrPqM9JGdcOd38ddmSABNGjq6eHsvwlZrukUBwxIQxqkW96szQrDOlrA0KEB1RxL ATvyadvYsOzbc0e9JCQ2hxmfvjHCp286ulKqOps1nhFNRdnEZzxUukT/XiUyojXwTmCx ip76YWxjruQL6DgAdQyS5JZwqmcfv7f07ZD11p6WJqYYcFCCGuMr6V4niCSWI5Ydk+yS gd4Q== 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=84583yIct+fNxRagU/I0oUzZetXb7oFAI3KOXHJQqUA=; b=QifMGTBoyN8/YQ45QbBVkpQvj3tepplurUzjcDrFJbN9egEZQ+rv27XSqlxk1xFTzq LzE3mQcsHiWRaqb7b7js41UbwUuTSiMCe1mTfY2v2EeTiUC+QHtWpxI+GvgbBzYkr1za CmqTXHLmuKLDm/ZxGVnFDSDG8cxau4JuodAICC+lrP5gXRiwZBMMu/z90qo9XL7NedLf toEHvuuRXpGFm6Vy01OJo4gsXDT7fAfDpP5spm8FC7ndLGJbTiYlsA1uPRFv5SFeAdRL y6sPEmF0UL1aPizQD/5lOoyKUS825PCq9/MkhfIybwUPV+z8gjY3ewN0cSfkEgaZwXFQ cr7w== X-Gm-Message-State: AOAM530Yx/X4vzSmyhIM91C/XJbbNPqyt/6qqgXZSUbNjjuAk8AtNE12 b8LtJ0Nxl+aXbgkBNNI9W5k+9+9zfpI= X-Google-Smtp-Source: ABdhPJwajm1nSgccZzMMxt7Yj7FhrjQ9hT6dRyc0q9bLokojEP4AQzrC4eZEP48WKDdjvYfQFasvFg== X-Received: by 2002:a17:90b:4b89:: with SMTP id lr9mr1848777pjb.126.1598969794412; Tue, 01 Sep 2020 07:16:34 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 07:16:34 -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 , Nick Hu , Vincent Chen , Greentime Hu Subject: [PATCH v3 12/23] nds32: use asm-generic/mmu_context.h for no-op implementations Date: Wed, 2 Sep 2020 00:15:28 +1000 Message-Id: <20200901141539.1757549-13-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: DF20D100E691E X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Cc: Nick Hu Cc: Vincent Chen Acked-by: Greentime Hu Signed-off-by: Nicholas Piggin --- arch/nds32/include/asm/mmu_context.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/nds32/include/asm/mmu_context.h b/arch/nds32/include/asm/mmu_context.h index b8fd3d189fdc..c651bc8cacdc 100644 --- a/arch/nds32/include/asm/mmu_context.h +++ b/arch/nds32/include/asm/mmu_context.h @@ -9,6 +9,7 @@ #include #include +#define init_new_context init_new_context static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm) { @@ -16,8 +17,6 @@ init_new_context(struct task_struct *tsk, struct mm_struct *mm) return 0; } -#define destroy_context(mm) do { } while(0) - #define CID_BITS 9 extern spinlock_t cid_lock; extern unsigned int cpu_last_cid; @@ -47,10 +46,6 @@ static inline void check_context(struct mm_struct *mm) __new_context(mm); } -static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) -{ -} - static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, struct task_struct *tsk) { @@ -62,7 +57,6 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, } } -#define deactivate_mm(tsk,mm) do { } while (0) -#define activate_mm(prev,next) switch_mm(prev, next, NULL) +#include #endif