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=-11.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 6DF20C433E2 for ; Thu, 3 Sep 2020 05:57:18 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 1EDAF2067C for ; Thu, 3 Sep 2020 05:57:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1EDAF2067C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=libc.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 986C26B0002; Thu, 3 Sep 2020 01:57:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 936EB6B0003; Thu, 3 Sep 2020 01:57:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 84C1E6B0037; Thu, 3 Sep 2020 01:57:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0072.hostedemail.com [216.40.44.72]) by kanga.kvack.org (Postfix) with ESMTP id 6FF216B0002 for ; Thu, 3 Sep 2020 01:57:17 -0400 (EDT) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 2189A2491 for ; Thu, 3 Sep 2020 05:57:17 +0000 (UTC) X-FDA: 77220692514.12.screw32_27150e5270a7 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin12.hostedemail.com (Postfix) with ESMTP id E1DA81800EC29 for ; Thu, 3 Sep 2020 05:57:16 +0000 (UTC) X-HE-Tag: screw32_27150e5270a7 X-Filterd-Recvd-Size: 3035 Received: from brightrain.aerifal.cx (brightrain.aerifal.cx [216.12.86.13]) by imf32.hostedemail.com (Postfix) with ESMTP for ; Thu, 3 Sep 2020 05:57:16 +0000 (UTC) Date: Thu, 3 Sep 2020 01:57:15 -0400 From: Rich Felker To: Nicholas Piggin Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Arnd Bergmann , Yoshinori Sato , linux-sh@vger.kernel.org Subject: Re: [PATCH v3 19/23] sh: use asm-generic/mmu_context.h for no-op implementations Message-ID: <20200903055715.GY3265@brightrain.aerifal.cx> References: <20200901141539.1757549-1-npiggin@gmail.com> <20200901141539.1757549-20-npiggin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200901141539.1757549-20-npiggin@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Rspamd-Queue-Id: E1DA81800EC29 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 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: On Wed, Sep 02, 2020 at 12:15:35AM +1000, Nicholas Piggin wrote: > Cc: Yoshinori Sato > Cc: Rich Felker > Cc: linux-sh@vger.kernel.org > Signed-off-by: Nicholas Piggin > --- > > Please ack or nack if you object to this being mered via > Arnd's tree. Acked-by: Rich Felker > > arch/sh/include/asm/mmu_context.h | 5 ++--- > arch/sh/include/asm/mmu_context_32.h | 9 --------- > 2 files changed, 2 insertions(+), 12 deletions(-) > > diff --git a/arch/sh/include/asm/mmu_context.h b/arch/sh/include/asm/mmu_context.h > index 461b1304580b..78eef4e7d5df 100644 > --- a/arch/sh/include/asm/mmu_context.h > +++ b/arch/sh/include/asm/mmu_context.h > @@ -84,6 +84,7 @@ static inline void get_mmu_context(struct mm_struct *mm, unsigned int cpu) > * 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) > { > @@ -120,9 +121,7 @@ static inline void switch_mm(struct mm_struct *prev, > activate_context(next, cpu); > } > > -#define activate_mm(prev, next) switch_mm((prev),(next),NULL) > -#define deactivate_mm(tsk,mm) do { } while (0) > -#define enter_lazy_tlb(mm,tsk) do { } while (0) > +#include > > #else > > diff --git a/arch/sh/include/asm/mmu_context_32.h b/arch/sh/include/asm/mmu_context_32.h > index 71bf12ef1f65..bc5034fa6249 100644 > --- a/arch/sh/include/asm/mmu_context_32.h > +++ b/arch/sh/include/asm/mmu_context_32.h > @@ -2,15 +2,6 @@ > #ifndef __ASM_SH_MMU_CONTEXT_32_H > #define __ASM_SH_MMU_CONTEXT_32_H > > -/* > - * 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) > -{ > - /* Do nothing */ > -} > - > #ifdef CONFIG_CPU_HAS_PTEAEX > static inline void set_asid(unsigned long asid) > { > -- > 2.23.0