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=-9.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,UNWANTED_LANGUAGE_BODY,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 781DCC433DF for ; Wed, 26 Aug 2020 14:53:41 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 37CF72078D for ; Wed, 26 Aug 2020 14:53:41 +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="sJxfh2jJ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 37CF72078D 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 CDC7E6B0026; Wed, 26 Aug 2020 10:53:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C686F8D0001; Wed, 26 Aug 2020 10:53:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B060D6B0028; Wed, 26 Aug 2020 10:53:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0130.hostedemail.com [216.40.44.130]) by kanga.kvack.org (Postfix) with ESMTP id 99BCA6B0026 for ; Wed, 26 Aug 2020 10:53:40 -0400 (EDT) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 535E53626 for ; Wed, 26 Aug 2020 14:53:40 +0000 (UTC) X-FDA: 77193013800.23.soda08_561724b27065 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin23.hostedemail.com (Postfix) with ESMTP id D49BA37609 for ; Wed, 26 Aug 2020 14:53:38 +0000 (UTC) X-HE-Tag: soda08_561724b27065 X-Filterd-Recvd-Size: 5219 Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by imf35.hostedemail.com (Postfix) with ESMTP for ; Wed, 26 Aug 2020 14:53:35 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id d22so1108632pfn.5 for ; Wed, 26 Aug 2020 07:53:35 -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=wuGEwlNHfczwsScET5//DK/IY7Qs+PjjbY2XOsrR6EY=; b=sJxfh2jJmRyJwyZjRYiK59/JqRgrFpTkVZ5xgJoltk4TDoYL+GlD9+tgJIxFMS58zE bVZWwfb+obCUVs74Vy+38s/0c3jNR31aeAqt65bmhYQYtabBgIbEydsGfCwHbw22HIaZ xBjgLEgMOymilWxmlOBg6wnsNLYEaQkNJYoynGXLUEPLUNM/pUihKqkfYim77mykoZHw r/99g3M/GcaRxVtbvKEmtUHqBLQQegIIytdG4HCL8pOfpNjtwUfY4x9elFPCV0UbZrmn nLcQ8bYgj5PDwHpwAmqejHERBakNqFdh+/LDrmy2R3t0JejiqkpszFSlXK0puSMx2qq5 EfeA== 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=wuGEwlNHfczwsScET5//DK/IY7Qs+PjjbY2XOsrR6EY=; b=pfK1zmbNzEJfGuCsp3pN6NlpMlUBqnVqmB940R2f4UqU1oG/mqS/SucCjut1xLuVc1 +jnXr1X9Dibt3DznhYdkvckt+4zmZ9UKp/aW+pkMEWqeAgGeSYsn2KkY1iC01At8FRxJ vfkLGDToc/F16aPmUAchx3Xlb++5WUFQpZyoBtdrTO13R8QcIk7hITcqociwR3IucAOa ZVhkjjJ2oeCnPFVMfRa/1hf/aHbbWsvEzs91edLo2+WeFDrvDHR1+Q56nuTf//B23oAW dc2HCPBnRZ1k3RYO64IPwR91wqyk+DMEEiGZ6Yd5IiKSF5TCOlPKSVddifRU0M+ooHBF JTIw== X-Gm-Message-State: AOAM533d7xSY0KQltWBGBN/RCDEzdciG1Byk7kBTPCnzxW6Ifb2u5Vr4 mrh0RlOWrvep+ULrmpAm91Y= X-Google-Smtp-Source: ABdhPJwnwRk8+dVeXoz0Grl/YQQOhYKHOnjDr66zdyR/sD12wD+22g0P7kpG1iTmQ2c7J7Xd74ABaw== X-Received: by 2002:a65:6287:: with SMTP id f7mr1593741pgv.264.1598453615205; Wed, 26 Aug 2020 07:53:35 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 07:53: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 , Michal Simek Subject: [PATCH v2 10/23] microblaze: use asm-generic/mmu_context.h for no-op implementations Date: Thu, 27 Aug 2020 00:52:36 +1000 Message-Id: <20200826145249.745432-11-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: D49BA37609 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: Michal Simek Signed-off-by: Nicholas Piggin --- arch/microblaze/include/asm/mmu_context_mm.h | 8 ++++---- arch/microblaze/include/asm/processor.h | 3 --- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/arch/microblaze/include/asm/mmu_context_mm.h b/arch/microbla= ze/include/asm/mmu_context_mm.h index a1c7dd48454c..c2c77f708455 100644 --- a/arch/microblaze/include/asm/mmu_context_mm.h +++ b/arch/microblaze/include/asm/mmu_context_mm.h @@ -33,10 +33,6 @@ to represent all kernel pages as shared among all contexts. */ =20 -static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_stru= ct *tsk) -{ -} - # define NO_CONTEXT 256 # define LAST_CONTEXT 255 # define FIRST_CONTEXT 1 @@ -105,6 +101,7 @@ static inline void get_mmu_context(struct mm_struct *= mm) /* * We're finished using the context for an address space. */ +#define destroy_context destroy_context static inline void destroy_context(struct mm_struct *mm) { if (mm->context !=3D NO_CONTEXT) { @@ -126,6 +123,7 @@ static inline void switch_mm(struct mm_struct *prev, = struct mm_struct *next, * 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 static inline void activate_mm(struct mm_struct *active_mm, struct mm_struct *mm) { @@ -136,5 +134,7 @@ static inline void activate_mm(struct mm_struct *acti= ve_mm, =20 extern void mmu_context_init(void); =20 +#include + # endif /* __KERNEL__ */ #endif /* _ASM_MICROBLAZE_MMU_CONTEXT_H */ diff --git a/arch/microblaze/include/asm/processor.h b/arch/microblaze/in= clude/asm/processor.h index 1ff5a82b76b6..616211871a6e 100644 --- a/arch/microblaze/include/asm/processor.h +++ b/arch/microblaze/include/asm/processor.h @@ -122,9 +122,6 @@ unsigned long get_wchan(struct task_struct *p); # define KSTK_EIP(task) (task_pc(task)) # define KSTK_ESP(task) (task_sp(task)) =20 -/* FIXME */ -# define deactivate_mm(tsk, mm) do { } while (0) - # define STACK_TOP TASK_SIZE # define STACK_TOP_MAX STACK_TOP =20 --=20 2.23.0