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=-6.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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,URIBL_BLOCKED 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 65BC3C433E6 for ; Fri, 28 Aug 2020 10:10:34 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 26FC62078A for ; Fri, 28 Aug 2020 10:10:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="J6jNWBRu" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 26FC62078A 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 C1BF36B000C; Fri, 28 Aug 2020 06:10:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BCBA36B000D; Fri, 28 Aug 2020 06:10:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B09516B000E; Fri, 28 Aug 2020 06:10:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0182.hostedemail.com [216.40.44.182]) by kanga.kvack.org (Postfix) with ESMTP id 9C8466B000C for ; Fri, 28 Aug 2020 06:10:33 -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 5B4BE1EF3 for ; Fri, 28 Aug 2020 10:10:33 +0000 (UTC) X-FDA: 77199557946.19.feast60_0b16a2f27074 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin19.hostedemail.com (Postfix) with ESMTP id 2E3C51AD1B9 for ; Fri, 28 Aug 2020 10:10:33 +0000 (UTC) X-HE-Tag: feast60_0b16a2f27074 X-Filterd-Recvd-Size: 4832 Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) by imf25.hostedemail.com (Postfix) with ESMTP for ; Fri, 28 Aug 2020 10:10:32 +0000 (UTC) Received: by mail-qk1-f193.google.com with SMTP id o64so411451qkb.10 for ; Fri, 28 Aug 2020 03:10:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=+hJXI9cFE9rCcx7qtPV2P2e4rn3Gd6KJdCgG1Ajq7Wo=; b=J6jNWBRuWcWYeswiJHbzRkDdQe007vh1kwvU+6h1q+PnXiMD3M126l+Per5aQfKju0 dmij3mBKZv1HflieLr4BbJ93ClRkO7YoaWLdR5T7jqrVSD2vtziPY0cO7QmEZJjzIDs+ L+7/Aqfmo0DZmmsa54fzWAOuxPkMktI2qqymu5dJULq4pX/6adxCTub3R+k9FUNB/+aO 4zxiL66Iz2/GPIQaUSMv+ZA/UaRLLzhp4i3hTL7Qr+l+9rNcZXrhorGYnyDn/rBWL6wt UCv7bxWwr5Pnd8bvHDhuX3RmcDfCo4135vhgS0KN908wsLXWo80wiZ53s7xtmLPQjkNT 4JGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=+hJXI9cFE9rCcx7qtPV2P2e4rn3Gd6KJdCgG1Ajq7Wo=; b=UnBpN3irTFqxiZ97jvAvYLirX2DI23O2EKUnmuYrdzlhwrcKj3dYOjPJirZnr+cQu+ uNvGRM5TNEDd7kcwCaWRozi3cd3ioZBMNH4aVeGaOt6InlEp2G1j2S7JqFnkXynlZeg+ YkWr63HwqcnBccS626WTT5CAONxAUpqNCYW3gNf7VaaLd2J1442n6owJD8xp1BjTVvbV rtzRltpP4g02sBvy9K8UUglBYyWlLOE6EmPvnU6lXmy2smMweFL0DQLUI9UASUH7EesH XkKqka4eF7JytJGHQqnH/oGsbFrEXHNb8L54Xs9D0BJAkPgTfWMR+Vpt7muxPQyfmuVw GFYQ== X-Gm-Message-State: AOAM532pG/1zd8NOsQ1paIZfh2wp31g649MKHVsUpUGKVWa8MtCkFwQg iLjdoTr/ORDBhizByMJ3LFl1L+WN9XEtajJhrOA= X-Google-Smtp-Source: ABdhPJwOnd1RLFSro/DqkTyh21rvNgHPl4tBMJGboubBvMieApXh+jk5M+injx416qXZDO0/JzoVqAQPmPgLMf87wQg= X-Received: by 2002:a37:b347:: with SMTP id c68mr452648qkf.430.1598609432041; Fri, 28 Aug 2020 03:10:32 -0700 (PDT) MIME-Version: 1.0 References: <20200826145249.745432-1-npiggin@gmail.com> <20200826145249.745432-13-npiggin@gmail.com> In-Reply-To: <20200826145249.745432-13-npiggin@gmail.com> From: Greentime Hu Date: Fri, 28 Aug 2020 18:09:54 +0800 Message-ID: Subject: Re: [PATCH v2 12/23] nds32: use asm-generic/mmu_context.h for no-op implementations To: Nicholas Piggin Cc: linux-arch , Linux Kernel Mailing List , Linux Memory Management List , Arnd Bergmann , Nick Hu , Vincent Chen Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 2E3C51AD1B9 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam03 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: Nicholas Piggin =E6=96=BC 2020=E5=B9=B48=E6=9C=8826=E6= =97=A5 =E9=80=B1=E4=B8=89 =E4=B8=8B=E5=8D=8810:53=E5=AF=AB=E9=81=93=EF=BC= =9A > > 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 > > +#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; > } > > -#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_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, > } > } > > -#define deactivate_mm(tsk,mm) do { } while (0) > -#define activate_mm(prev,next) switch_mm(prev, next, NULL) > +#include > > #endif Acked-by: Greentime Hu Thank you. :)