Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp291788pxk; Wed, 2 Sep 2020 22:58:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy77VUjiiA2qH/GDYMFWVMuWfzC6jA+ZYHSJ4weOt26e7tHkA3XekJWlWz12kX2Gl2J2Xiy X-Received: by 2002:a17:906:16da:: with SMTP id t26mr507148ejd.172.1599112692691; Wed, 02 Sep 2020 22:58:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599112692; cv=none; d=google.com; s=arc-20160816; b=QEtgM2jDDfJ2qg3D6Ljf64RiXu1V+Tlf0271oRI7EfVJb5cyFN0Xhm8e3TUd28EamR IcHqvXXzU4UFGO5AH2/gtgbXgrcd7O9B0t3ytgibDFsvXjjLNQQ1SeOMRLlPa5692W95 wn5V3kU6jHJLElHrWWKeW+5PgUEqkM/rxr6pgyX8zUfk23FfdQgtdNC39MjbdVgzUJEg l61rpsn+evIYpDY2TGUQ9AKz5S6H3gDJmoyhpMbNeMsOp9w2Lbrr5gm8UPO/dgJ6BH9j W/hqVRu5aodu3Bj9enQum1Xn9YMo/+ZRr8A4KDiEHeTH+CDsi9ICd+QH0KzPnHWNIVQW CmRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=/Dpc62bOMfSp/3ETUOXPMi3ftyyn/1NO9oJnTaze1hc=; b=Rnupf0ZB5khHPLbOiIVZJVbcg3PFXUPNsGqPVdoyc1Fp7gEBFa7ZhA6tdmI//OL/ht JexPpK4ImM8l6v6vlTGaZmjE0EaWBpQnMiqbW/lNFtxrWi1I9sVFylppI22M5YjPxHOI cu8qhJowkKaWiD9BayXoVAH/ezgKfL1U6dlnSCTOMwyHYpwMppfucKSQX2dYzisB+A4I CQJ68MJFFxpIuUqv9kB/C7ViFJYm7uDunve6OZSMuwBnq6bL5tsTrEnuq/RIYEIQ92Ko q3w4g2CFt85qRMQ0/SmCZoOytOX6Zmwydm4sA4XvEbcqaMBNXzgHP0qK9uMgH/W3LRnu vdIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mb18si1384574ejb.569.2020.09.02.22.57.48; Wed, 02 Sep 2020 22:58:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726047AbgICF5R (ORCPT + 99 others); Thu, 3 Sep 2020 01:57:17 -0400 Received: from brightrain.aerifal.cx ([216.12.86.13]:49134 "EHLO brightrain.aerifal.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725943AbgICF5R (ORCPT ); Thu, 3 Sep 2020 01:57:17 -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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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