Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp183961pxa; Wed, 26 Aug 2020 08:00:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwszrn2eo0Ogqlid+G6upXx081NwLbvzEpt+HQ4ZVF2gK8PCr+8Tz1dJ+CXUrj3TwJ07N3G X-Received: by 2002:a17:906:aad7:: with SMTP id kt23mr15873387ejb.124.1598454000932; Wed, 26 Aug 2020 08:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598454000; cv=none; d=google.com; s=arc-20160816; b=L0JHYfEwXz4lXjExjBOlSLU5TSohFEmI1kTzBKA9ilfg2NsP1ChVhHQq/GoTG9Mm65 XtPMkZA2mnftR9jrlms5LnLrrLOzlJIReJ4lkYbiiSFqcHZiltPEb3MiT0Eo0WW3wrlZ soj07KbCtp88Ob03yV8g2U5w/qwDtBzxYiMU2aUy0x2E3JD/y58Ty+w5E8cqKVE6clw1 QTXMRifu3LN7tQNMUTjld148cVo5N5jtkuuCU4QivEPhtsNuqv39pMDO4s+AhOoUJF79 DoTmmFZmuyO90eveEVLmOBXceQ0+e1wVHYIWeZivf2SRmlZz62LK627/Lp1f9lMYJYsn lnyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=i6IDKVv/shVEq6irgZZFcLvF1FRkf6GgTDbDcMbNEAs=; b=d+ZOgJovRjAXqsCPcgQj285qswEOke5ivv+OTE6m6CIo0nNgLzhdNvFBPAKG62w3Yr uWLgaufawGECzFU3DBrYk45cJYw6eOyyYOYR6HDAihmpkrnH2CdGRZad+Hh7m89EWh3U BDnE0BrAANgLizoMOzd70nC5I9+B7H9i017gvIjkjtretqfUB3U1gSpxjiTTEdt56J2r QjycWI2zLGEcuu20Z9rJyVihLrBypqBpmEZxcZitMz0hJ51wRcjnj6xCP1utiEVifkXy ZZJwSAhkb13i1bZ96FRvHWQ/Oq5I0s6c7TLMwHBKZ6NmM1icjrv43jFv5YxRwKOntFfC kJVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fn3sDeur; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x2si1851294ejj.386.2020.08.26.07.59.38; Wed, 26 Aug 2020 08:00:00 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fn3sDeur; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728505AbgHZO5m (ORCPT + 99 others); Wed, 26 Aug 2020 10:57:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727074AbgHZOxG (ORCPT ); Wed, 26 Aug 2020 10:53:06 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A69DC061574; Wed, 26 Aug 2020 07:53:06 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id h2so1006136plr.0; Wed, 26 Aug 2020 07:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=i6IDKVv/shVEq6irgZZFcLvF1FRkf6GgTDbDcMbNEAs=; b=Fn3sDeuriJkzPq8xhjmF8hfliMyPLrzu+HeDi8nNSywnpEb6tEK82GyFjtvfg7Jn2G K3C+AVMEI43lXyXUzi5+1h/MnpOEAu5PD9nGyD55rToVneTmm9nWQwqYEVrpcDp6Cx4o I3M9bZbNehxI42EaM06LKpI4gdGG8tH3GyY/WJx32aiPMX3NuKpH8voX25DtXVmK/ZO3 ULmKzAk4sf8kpnuZp+GFAkwbHP4xNDKUFp5kAFZZqBWzHrox1+JB24MC0T0hx61dxF1p /0dD8SEFkVJZMWFtACiTaclunC1o1Uv1uubiqa/fu1a5S2C2QV7Prjdr03x512uSNhqi Jf4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=i6IDKVv/shVEq6irgZZFcLvF1FRkf6GgTDbDcMbNEAs=; b=TOkhqERlM8Q4+yBkpVAv3toNKjMAyRdUpbFIeuY6vf8fhxSsp75k/TFrLN5LqUEi+Z DI9QXHirreg9mj//sP5TiHoEONt3SQxdfhCAAaDzZ/JOuO9nxtH6Nswx8U241E1BOsVx B8CnMsv0xmmXmsjc0NpurpRhzVWlceXPPd7awuZf6RNm5hG6r8+quPipI9vIYoTM1RX6 clXcLvLUnZAvvAvbRBeg1c3Un8dEFeNEDiIcIVXhoLCj1Ju30M+BGKhLdBfAYRpcxqRu +DPnQOEkLuFIfNQ2pfMQd8OsERn3on6+cf7kDn5q1ePJCfTmkykvhQzPLqULXw3vSLRZ /hqw== X-Gm-Message-State: AOAM5305ygWhI+iMFFEpGDAsBVIkSnuyWQq849f1BrHznI3O8z+059A6 7K3aW6L/CpNnIPZrBnyPoWnx1kaZV7E= X-Received: by 2002:a17:90b:4a46:: with SMTP id lb6mr6525335pjb.107.1598453585598; Wed, 26 Aug 2020 07:53:05 -0700 (PDT) Received: from bobo.ozlabs.ibm.com (61-68-212-105.tpgi.com.au. [61.68.212.105]) by smtp.gmail.com with ESMTPSA id r7sm3327140pfl.186.2020.08.26.07.53.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 07:53:05 -0700 (PDT) From: Nicholas Piggin To: linux-arch@vger.kernel.org Cc: Nicholas Piggin , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Arnd Bergmann , Richard Henderson , Ivan Kokshaysky , Matt Turner , linux-alpha@vger.kernel.org Subject: [PATCH v2 02/23] alpha: use asm-generic/mmu_context.h for no-op implementations Date: Thu, 27 Aug 2020 00:52:28 +1000 Message-Id: <20200826145249.745432-3-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200826145249.745432-1-npiggin@gmail.com> References: <20200826145249.745432-1-npiggin@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Cc: linux-alpha@vger.kernel.org Signed-off-by: Nicholas Piggin --- arch/alpha/include/asm/mmu_context.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/alpha/include/asm/mmu_context.h b/arch/alpha/include/asm/mmu_context.h index 6d7d9bc1b4b8..4eea7c616992 100644 --- a/arch/alpha/include/asm/mmu_context.h +++ b/arch/alpha/include/asm/mmu_context.h @@ -214,8 +214,6 @@ ev4_activate_mm(struct mm_struct *prev_mm, struct mm_struct *next_mm) tbiap(); } -#define deactivate_mm(tsk,mm) do { } while (0) - #ifdef CONFIG_ALPHA_GENERIC # define switch_mm(a,b,c) alpha_mv.mv_switch_mm((a),(b),(c)) # define activate_mm(x,y) alpha_mv.mv_activate_mm((x),(y)) @@ -229,6 +227,7 @@ ev4_activate_mm(struct mm_struct *prev_mm, struct mm_struct *next_mm) # endif #endif +#define init_new_context init_new_context static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm) { @@ -242,12 +241,7 @@ init_new_context(struct task_struct *tsk, struct mm_struct *mm) return 0; } -extern inline void -destroy_context(struct mm_struct *mm) -{ - /* Nothing to do. */ -} - +#define enter_lazy_tlb enter_lazy_tlb static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) { @@ -255,6 +249,8 @@ enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) = ((unsigned long)mm->pgd - IDENT_ADDR) >> PAGE_SHIFT; } +#include + #ifdef __MMU_EXTERN_INLINE #undef __EXTERN_INLINE #undef __MMU_EXTERN_INLINE -- 2.23.0