From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 72865C4345D for ; Tue, 28 Jul 2020 03:35:06 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 26C0022B49 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 26C0022B49 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) Received: by kanga.kvack.org (Postfix, from userid 40) id BBAED6B0025; Mon, 27 Jul 2020 23:35:05 -0400 (EDT) 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-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-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 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: 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/as= m/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 =20 +#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_str= uct *mm) return 0; } =20 -#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); } =20 -static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_stru= ct *tsk) -{ -} - static inline void switch_mm(struct mm_struct *prev, struct mm_struct *n= ext, struct task_struct *tsk) { @@ -62,7 +57,6 @@ static inline void switch_mm(struct mm_struct *prev, st= ruct mm_struct *next, } } =20 -#define deactivate_mm(tsk,mm) do { } while (0) -#define activate_mm(prev,next) switch_mm(prev, next, NULL) +#include =20 #endif --=20 2.23.0