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.5 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=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 17AF1C433E6 for ; Tue, 1 Sep 2020 14:17:33 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B0E41206CD for ; Tue, 1 Sep 2020 14:17:32 +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="pNUM33L8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B0E41206CD 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 6EF04900012; Tue, 1 Sep 2020 10:17:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6507690000D; Tue, 1 Sep 2020 10:17:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 56659900012; Tue, 1 Sep 2020 10:17:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0203.hostedemail.com [216.40.44.203]) by kanga.kvack.org (Postfix) with ESMTP id 3A73B90000D for ; Tue, 1 Sep 2020 10:17:28 -0400 (EDT) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 00DE32495 for ; Tue, 1 Sep 2020 14:17:27 +0000 (UTC) X-FDA: 77214695376.19.boy85_5c06fda27098 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin19.hostedemail.com (Postfix) with ESMTP id A555B1AD8FF for ; Tue, 1 Sep 2020 14:17:23 +0000 (UTC) X-HE-Tag: boy85_5c06fda27098 X-Filterd-Recvd-Size: 4996 Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by imf18.hostedemail.com (Postfix) with ESMTP for ; Tue, 1 Sep 2020 14:16:54 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id m8so869486pfh.3 for ; Tue, 01 Sep 2020 07:16:53 -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=T7hl6/jzH9JaCJmjBLvvza5EUcXtSUI/1TemyK+HC9o=; b=pNUM33L87/n3oMvM1sognLh5DCDBRm6ZHKqDFXRM9BZJCR6vzswELgtbDPSBnfrTVF W9OB4D7886nLFTuXJnoHU14ASpJG3zm5zKpFFxpfxeW/6JIfgoge8+p1byr6gTf3m3z7 yCANr114qi38F/fThOZja3tYGmqXbyvtaSeFHfqRcvmNIkgmtg6PSUi6ak6DJnLjNVT3 neYukQkFNkzifFFXKRE8VdR5S2Albh+rTn6gJVNW5SVe/oV7nFKvbhfsAjjCDPahKEOO QbdngNHv7o6geqrV5yyQhDX0jg0iO8wmpF/MX5OLsURm2XnAlIjPQhnEU9ohYiHpVtnt sLMg== 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=T7hl6/jzH9JaCJmjBLvvza5EUcXtSUI/1TemyK+HC9o=; b=mCDUykDTbUPwl6SCDNHuByj46B87ZXGLETiRTT8Y/69jU62NJzy+viAHSfEf2tH/Zt 28Tf/x6EiNAZYxKIcKQoj6qEDJR1AjgB69FqYgbQNoIAD5imjCkcAAzqX6YmU/mFBPuv Sid129sJl52fLOUlxEQBhY0S5V7Lp81GHriDpQWwNWchnTw+APjoVaeYfCpxI/OHofAs HvW+YUZBlSBcpQnS5b04FxHsiAIz7X+KnHkkFpwH12iJCNY2JZsj3sRhQnD7fAP7eeV6 wSObWx65uYuCxABWr2QBrsY8GYj5ypBm55AKF7pVaaGAnacQ/ByP2+KOvVVx88/68pJj 4KVQ== X-Gm-Message-State: AOAM531ijWFi9SXIll5Xxb7Ju9TGgSlbFhnQZm9JmsD+mmJ8/uHvDYRM 7uoeJ6CcFroMUltJf2KMFn4= X-Google-Smtp-Source: ABdhPJzMGurkU7OEkWAj30u5pzoBQBXN7lJH9ysmj05h8xZeAsFILA7j+WaGXQ2T4NFEf2hyfqF7ag== X-Received: by 2002:a62:6887:: with SMTP id d129mr2000651pfc.279.1598969790530; Tue, 01 Sep 2020 07:16:30 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 07:16:30 -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 , Thomas Bogendoerfer , linux-mips@vger.kernel.org Subject: [PATCH v3 11/23] mips: use asm-generic/mmu_context.h for no-op implementations Date: Wed, 2 Sep 2020 00:15:27 +1000 Message-Id: <20200901141539.1757549-12-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: A555B1AD8FF X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 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: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org Signed-off-by: Nicholas Piggin --- Please ack or nack if you object to this being mered via Arnd's tree. arch/mips/include/asm/mmu_context.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/arch/mips/include/asm/mmu_context.h b/arch/mips/include/asm/= mmu_context.h index cddead91acd4..ed9f2d748f63 100644 --- a/arch/mips/include/asm/mmu_context.h +++ b/arch/mips/include/asm/mmu_context.h @@ -124,10 +124,6 @@ static inline void set_cpu_context(unsigned int cpu, #define cpu_asid(cpu, mm) \ (cpu_context((cpu), (mm)) & cpu_asid_mask(&cpu_data[cpu])) =20 -static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_stru= ct *tsk) -{ -} - extern void get_new_mmu_context(struct mm_struct *mm); extern void check_mmu_context(struct mm_struct *mm); extern void check_switch_mmu_context(struct mm_struct *mm); @@ -136,6 +132,7 @@ extern void check_switch_mmu_context(struct mm_struct= *mm); * Initialize the context related info for a new mm_struct * instance. */ +#define init_new_context init_new_context static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm) { @@ -180,14 +177,12 @@ static inline void switch_mm(struct mm_struct *prev= , struct mm_struct *next, * Destroy context related info for an mm_struct that is about * to be put to rest. */ +#define destroy_context destroy_context static inline void destroy_context(struct mm_struct *mm) { dsemul_mm_cleanup(mm); } =20 -#define activate_mm(prev, next) switch_mm(prev, next, current) -#define deactivate_mm(tsk, mm) do { } while (0) - static inline void drop_mmu_context(struct mm_struct *mm) { @@ -237,4 +232,6 @@ drop_mmu_context(struct mm_struct *mm) local_irq_restore(flags); } =20 +#include + #endif /* _ASM_MMU_CONTEXT_H */ --=20 2.23.0