From patchwork Tue Jul 28 03:33:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 11688033 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 222EF913 for ; Tue, 28 Jul 2020 03:35:07 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E14CD206D4 for ; Tue, 28 Jul 2020 03:35:06 +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="Vwd0wIE5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E14CD206D4 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 C30E56B0024; Mon, 27 Jul 2020 23:35:05 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id BBAED6B0025; Mon, 27 Jul 2020 23:35:05 -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 A828A6B0026; Mon, 27 Jul 2020 23:35:05 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0113.hostedemail.com [216.40.44.113]) by kanga.kvack.org (Postfix) with ESMTP id 929586B0024 for ; Mon, 27 Jul 2020 23:35:05 -0400 (EDT) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 535298248047 for ; Tue, 28 Jul 2020 03:35:05 +0000 (UTC) X-FDA: 77086068570.14.dock29_3103d2f26f66 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin14.hostedemail.com (Postfix) with ESMTP id 2B95F18229837 for ; Tue, 28 Jul 2020 03:35:05 +0000 (UTC) X-Spam-Summary: 1,0,0,f1cb6549d0133ff2,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.214.194:@gmail.com:.lbl8.mailshell.net-66.100.201.100 62.50.0.100;04yfp8k6ayc3bda4p7c3shjce64nwyp9zhzjzebewnyra4hr8wxthoj1cwkgcc5.btff48kwe3ix3jxt4sao5sthea68u8dsqd5a8pmu3wij318jjouq1gyj96ry79h.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:27,LUA_SUMMARY:none X-HE-Tag: dock29_3103d2f26f66 X-Filterd-Recvd-Size: 4629 Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by imf16.hostedemail.com (Postfix) with ESMTP for ; Tue, 28 Jul 2020 03:35:04 +0000 (UTC) Received: by mail-pl1-f194.google.com with SMTP id d1so9187157plr.8 for ; Mon, 27 Jul 2020 20:35:04 -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=xunuSn00ryI5QmLOCpDWIS49LIJoLf4dCD7QK4hOYao=; b=Vwd0wIE5pMB1KB/6Rg4KKys5GEaOzJHcN5kMr9KEpGK4buw7zn/fxH3pXYAUoXQfu3 BoZKoytUA00vllJ+vLtMuC32R07hA6+x6c178aV0xXjTiQCqaxk4noJUK0nWp1je6g5z lsxUPTuKQ5mwZOwhsSzLo60VTSsgH+YFQpEoAsvC6TErpQrEOymA4G5m1Tw0kcD5SkSq icb4VR1VpPVnM+yo1D9Ma1SdRO/xUFZp1IjC0qFkkd7pVYxIbG7qbVUUtEvXnEk/mpDF 4Amp9Nrx3CeiuYrBaTCiE9mqYWD2hulfu5u71xQ7sHnrMjEGGew/v0/TlrJj0CI+r4r8 1iHA== 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=xunuSn00ryI5QmLOCpDWIS49LIJoLf4dCD7QK4hOYao=; b=X+Giv4nI0m+XVR7VOK774GdGcImO0/SZ3j+nTHkv8yVOIcJMbmqQljMMmNFFcR7sa/ z3fNFSyNVsfeYYmFkgKuxowyoqi3dr0L4GHO3ym1O5iPyZ2Tencj7vV5QMoxX6KAkXNN m5dfQtcRV/13aRmwCG2JbsNql1iLn3YJ58Kl3pgKHAf/3hF77heL0wnHEsqUOF5fyJXz fgdwUix+WgKZcAXDFAZxrCnhz016UXfq+pybTW1+3l2FW5T/x9Onw2ZdTmanLaZzbwuZ 3LPD9DIcYhRoW50d+YCmHRR0O5MStsLjRAeGGEos0+snzeiElKuT34gyFOKTjBs6PJlp HoEw== X-Gm-Message-State: AOAM532cjsHGm77A6lzWYluHumYMNm1Z/1C4F/0wL1MvtzYk+KBQBPCZ NmAI1V4Pqd9gKfIoO+c2bPI= X-Google-Smtp-Source: ABdhPJwy9vQsOMTnhLc0CHqQwG9d4dF5tR3qtWGL2ir+KodwPx1w+ap9da2DdFTGpoTDL5POtac2GQ== X-Received: by 2002:a17:90a:6e47:: with SMTP id s7mr2329493pjm.217.1595907303967; Mon, 27 Jul 2020 20:35:03 -0700 (PDT) Received: from bobo.ozlabs.ibm.com (110-174-173-27.tpgi.com.au. [110.174.173.27]) by smtp.gmail.com with ESMTPSA id r4sm998707pji.37.2020.07.27.20.35.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 20:35:03 -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 , Greentime Hu , Vincent Chen Subject: [PATCH 12/24] nds32: use asm-generic/mmu_context.h for no-op implementations Date: Tue, 28 Jul 2020 13:33:53 +1000 Message-Id: <20200728033405.78469-13-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200728033405.78469-1-npiggin@gmail.com> References: <20200728033405.78469-1-npiggin@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 2B95F18229837 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 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: Nick Hu Cc: Greentime Hu Cc: Vincent Chen 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