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.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS 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 A2BA9C433DF for ; Tue, 11 Aug 2020 18:35:15 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 631E02076B for ; Tue, 11 Aug 2020 18:35:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.b="ew+Nvivv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 631E02076B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E99BF6B0002; Tue, 11 Aug 2020 14:35:14 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E49EF6B0005; Tue, 11 Aug 2020 14:35:14 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D397B6B0006; Tue, 11 Aug 2020 14:35:14 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id BB01E6B0002 for ; Tue, 11 Aug 2020 14:35:14 -0400 (EDT) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 66A1E181AC9CB for ; Tue, 11 Aug 2020 18:35:14 +0000 (UTC) X-FDA: 77139140148.25.spot81_2b0731b26fe5 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin25.hostedemail.com (Postfix) with ESMTP id 272591804E3A0 for ; Tue, 11 Aug 2020 18:35:14 +0000 (UTC) X-HE-Tag: spot81_2b0731b26fe5 X-Filterd-Recvd-Size: 5417 Received: from m43-7.mailgun.net (m43-7.mailgun.net [69.72.43.7]) by imf12.hostedemail.com (Postfix) with ESMTP for ; Tue, 11 Aug 2020 18:35:09 +0000 (UTC) DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1597170913; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-ID: Date: Subject: In-Reply-To: References: Cc: To: From: Reply-To: Sender; bh=Im9yRO9mh487palFvyNYpFQ99DNOmpNy24geWo/2G34=; b=ew+NvivvPE0PvSff1Aa+odL88kmkfVpQKFJtuYk9CR3qMKeJg0HWbOPH1+/6dZqm1FIHL4fA ymjOB1EEnxw3XnjwJ9Lboi4TEm9FO9AT0RIpGHAdUBN8hZfD/Lr3GmZzPHARqX7e/RO3hGKQ snAVMbcOfOmrFAdd1Jbsk48piT0= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyIwY2Q3OCIsICJsaW51eC1tbUBrdmFjay5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n15.prod.us-east-1.postgun.com with SMTP id 5f32e4cf2b87d66049387e21 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 11 Aug 2020 18:34:55 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id A26F9C433CB; Tue, 11 Aug 2020 18:34:54 +0000 (UTC) Received: from BCAIN (104-54-226-75.lightspeed.austtx.sbcglobal.net [104.54.226.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bcain) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5A230C433C6; Tue, 11 Aug 2020 18:34:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5A230C433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=bcain@codeaurora.org Reply-To: From: "Brian Cain" To: "'Nicholas Piggin'" , Cc: , , "'Arnd Bergmann'" , References: <20200728033405.78469-1-npiggin@gmail.com> <20200728033405.78469-8-npiggin@gmail.com> In-Reply-To: <20200728033405.78469-8-npiggin@gmail.com> Subject: RE: [PATCH 07/24] hexagon: use asm-generic/mmu_context.h for no-op implementations Date: Tue, 11 Aug 2020 13:34:52 -0500 Message-ID: <037d01d6700e$1af0a580$50d1f080$@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQIkqsFHYugh5s2ey2Pj0VF04P8MggLS7NLsqIAvKQA= Content-Language: en-us X-Rspamd-Queue-Id: 272591804E3A0 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 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: > -----Original Message----- > From: linux-arch-owner@vger.kernel.org > On Behalf Of Nicholas Piggin Acked-by: Brian Cain > Cc: Brian Cain > Cc: linux-hexagon@vger.kernel.org > Signed-off-by: Nicholas Piggin > --- > arch/hexagon/include/asm/mmu_context.h | 33 ++++---------------------- > 1 file changed, 5 insertions(+), 28 deletions(-) > > diff --git a/arch/hexagon/include/asm/mmu_context.h > b/arch/hexagon/include/asm/mmu_context.h > index cdc4adc0300a..81947764c47d 100644 > --- a/arch/hexagon/include/asm/mmu_context.h > +++ b/arch/hexagon/include/asm/mmu_context.h > @@ -15,39 +15,13 @@ > #include > #include > > -static inline void destroy_context(struct mm_struct *mm) -{ -} > - > /* > * VM port hides all TLB management, so "lazy TLB" isn't very > * meaningful. Even for ports to architectures with visble TLBs, > * this is almost invariably a null function. > + * > + * mm->context is set up by pgd_alloc, so no init_new_context required. > */ > -static inline void enter_lazy_tlb(struct mm_struct *mm, > - struct task_struct *tsk) > -{ > -} > - > -/* > - * Architecture-specific actions, if any, for memory map deactivation. > - */ > -static inline void deactivate_mm(struct task_struct *tsk, > - struct mm_struct *mm) > -{ > -} > - > -/** > - * init_new_context - initialize context related info for new mm_struct > instance > - * @tsk: pointer to a task struct > - * @mm: pointer to a new mm struct > - */ > -static inline int init_new_context(struct task_struct *tsk, > - struct mm_struct *mm) > -{ > - /* mm->context is set up by pgd_alloc */ > - return 0; > -} > > /* > * Switch active mm context > @@ -74,6 +48,7 @@ static inline void switch_mm(struct mm_struct *prev, > struct mm_struct *next, > /* > * Activate new memory map for task > */ > +#define activate_mm activate_mm > static inline void activate_mm(struct mm_struct *prev, struct mm_struct > *next) { > unsigned long flags; > @@ -86,4 +61,6 @@ static inline void activate_mm(struct mm_struct *prev, > struct mm_struct *next) > /* Generic hooks for arch_dup_mmap and arch_exit_mmap */ #include > > > +#include > + > #endif > -- > 2.23.0