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=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 B661BC433E7 for ; Thu, 3 Sep 2020 05:57:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7C65F2067C for ; Thu, 3 Sep 2020 05:57:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725984AbgICF5R (ORCPT ); Thu, 3 Sep 2020 01:57:17 -0400 Received: from brightrain.aerifal.cx ([216.12.86.13]:49140 "EHLO brightrain.aerifal.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725919AbgICF5Q (ORCPT ); Thu, 3 Sep 2020 01:57:16 -0400 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) Sender: linux-arch-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arch@vger.kernel.org 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