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.3 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,USER_AGENT_GIT autolearn=ham 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 27851C433E8 for ; Wed, 26 Aug 2020 14:53:50 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CA5D62078D for ; Wed, 26 Aug 2020 14:53:49 +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="ZlgkMnJG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CA5D62078D 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 CB7536B0029; Wed, 26 Aug 2020 10:53:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C3E026B002A; Wed, 26 Aug 2020 10:53:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B2DA36B002B; Wed, 26 Aug 2020 10:53:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0079.hostedemail.com [216.40.44.79]) by kanga.kvack.org (Postfix) with ESMTP id 9B62D6B0029 for ; Wed, 26 Aug 2020 10:53:47 -0400 (EDT) Received: from smtpin30.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 63D1E3659 for ; Wed, 26 Aug 2020 14:53:47 +0000 (UTC) X-FDA: 77193014094.30.bone34_180cfdc27065 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin30.hostedemail.com (Postfix) with ESMTP id 0880E180B3C85 for ; Wed, 26 Aug 2020 14:53:47 +0000 (UTC) X-HE-Tag: bone34_180cfdc27065 X-Filterd-Recvd-Size: 4844 Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by imf15.hostedemail.com (Postfix) with ESMTP for ; Wed, 26 Aug 2020 14:53:46 +0000 (UTC) Received: by mail-pl1-f193.google.com with SMTP id 10so1006552plg.8 for ; Wed, 26 Aug 2020 07:53: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=Crho1GeckyYBxh3qCyLD5ViQ5IZWY4Rxj/DBwYad/GM=; b=ZlgkMnJGdVfC98/jQl+I8jkQKmP360nq86MHnsiomaeZP5OuNBJccP6fMuIQkBa5FE X2I2ILOSi97V2mT87OutGPOoX5hS+gfyEWO4qMgDJSSwdtq9iNdVGMIlRL29g6Rz0044 OFqI/wZsfUTM0XOfft71HPNEshXfkd184b6VY7CNH4c75J/gB61iyNuKvpiYyYn1uAI9 KqRn3z+88CJ6NIfrnn3FnL0Cyx40NkS0MLsnf4mC4CM8Wzatkc/jDXeVIqwyMFNPrEY0 Uk4xeelsIqLGWSTlEWIjJZVXFsmr0hyGiGvX7KSes7UiegTLJji+CshexSQc/wkJ7kWB SXKg== 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=Crho1GeckyYBxh3qCyLD5ViQ5IZWY4Rxj/DBwYad/GM=; b=CYJdXeCrT7YaRotJoh3NBSYY3vxi+ZfcN8wAs1QoD0uSMN7P/jBGizmVVRtxVP1xDl YxHsPezeixG3hs3F9KXMYj9tnc8tgdPOstStMHtOGCihRwRqwp3SH73hiawWi2plbak+ xbj1C8mFzrmkHOp7J0s1zaT2oJiNfB0pyzgJ6/hdqvkfzExZJHJE8H3lfK+CFldGQ2hX FgPhmdPztqFaYj3z3LhZiFumiaYYz0MlV26euVI3eEFqHt/x5I7fbJmo1QqVMomNbFjo TsBMvJSQkB1BDzk4ruv3dGjRX2ZuEryxUyAXfuPmY1Hj3RIAw9b4iQMh0kV7irBYl6mT zxjQ== X-Gm-Message-State: AOAM531qVzzo5YU9IL6ScKRj9B3NYEXuA5ucIZKSRjLVI4NUpy3bxfpP /odffuUX4tEHjI6rvprTmx4= X-Google-Smtp-Source: ABdhPJzQoD1QarIs2qs7wxJ/lG+RA59AJBajALNQu9EE/q9NsmY0IQzXt6oyZkDE7VUDB8fSaMqk4Q== X-Received: by 2002:a17:90a:f2d3:: with SMTP id gt19mr6264154pjb.229.1598453625741; Wed, 26 Aug 2020 07:53:45 -0700 (PDT) Received: from bobo.ozlabs.ibm.com (61-68-212-105.tpgi.com.au. [61.68.212.105]) by smtp.gmail.com with ESMTPSA id r7sm3327140pfl.186.2020.08.26.07.53.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 07:53: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 , Ley Foon Tan Subject: [PATCH v2 13/23] nios2: use asm-generic/mmu_context.h for no-op implementations Date: Thu, 27 Aug 2020 00:52:39 +1000 Message-Id: <20200826145249.745432-14-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200826145249.745432-1-npiggin@gmail.com> References: <20200826145249.745432-1-npiggin@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 0880E180B3C85 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam02 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: Ley Foon Tan Signed-off-by: Nicholas Piggin --- 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/as= m/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; =20 -static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_stru= ct *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; } =20 -/* - * 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); =20 -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); =20 +#include + #endif /* _ASM_NIOS2_MMU_CONTEXT_H */ --=20 2.23.0