Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp184260pxa; Wed, 26 Aug 2020 08:00:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYCU17u0VS+trxpq3E9XxeAv7ANZcuIcIZzuziX7uV7Sxe9DkuK8fjEwhuiVh9DUS5efX7 X-Received: by 2002:a17:906:4d04:: with SMTP id r4mr16553506eju.450.1598454021881; Wed, 26 Aug 2020 08:00:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598454021; cv=none; d=google.com; s=arc-20160816; b=fK730NvNr7U8NuxwdVeyreZVPZhhtan2LnO29XAfo967LyIYWskOuSINrBbIKhOT14 9G6bMFHe7ZVtiojnanfJtBiwHrJ79IiWvP+aYlsQnzWstUOBxvjYfy51FNgTVy1frXt/ b/b4bFy+LsNAz22ZEcnWyRRLoZeEb5s0PLhd8/HfdNsCMHY7XeCRIl1yyrFPbZHgeIDL 5e1R6+29XIfNxNV1z2nt+n5PP6aBRuVeB3AF+74oPr7MFWl7basH+Om5uwn9MIvbHWxa gxLfwCHTm1uiFXF+sU99RYQHrZ8z777eThePrv3wZ/9Oy8YB5Sy2Sa79vuICbV1kT4Ou 720Q== 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=zBLkp4ACPTazmjPNrlv/57ssiAbYaRhM1wboTYBBHDY=; b=oZV6MFOu4/43o8X/oyUWKtIaBJwphlLP4fBHtWaxJkMApolUGKccPl8A0ihrfvwRIH X+Q76OXvx/1O+rElCoT/ldxtozcnRKZE3V5xf9fGozsxivOtTRA7XtIR5zujHjs7lfKf eQ04mOUKUxRLDjm4NqaDmwAxfboySa2v8qsiBc2gTwNFuYjsTGQdcO83xR/N+GBQ0ck2 yIWVwHbltkDs8KNMFF/HWMgs3XvTp0zEWJ5ZbUusMG4rltuRz2WUb5CUigPS1d8p0Zlt uHeu6QEtcfvfQpQZy2ikq18Gr84vjO4qN1jLUuVPm3qg1aTxzQjMlujsSQ5nkDHwnuMq 7Nwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uSNxJCCl; 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 y18si1846461ejq.742.2020.08.26.07.59.59; Wed, 26 Aug 2020 08:00:21 -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=uSNxJCCl; 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 S1728012AbgHZOz5 (ORCPT + 99 others); Wed, 26 Aug 2020 10:55:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728289AbgHZOyH (ORCPT ); Wed, 26 Aug 2020 10:54:07 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93ADAC061574; Wed, 26 Aug 2020 07:54:07 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id t9so1104550pfq.8; Wed, 26 Aug 2020 07:54:07 -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=zBLkp4ACPTazmjPNrlv/57ssiAbYaRhM1wboTYBBHDY=; b=uSNxJCClbqUuUEiL7mllj0REZCxj02jP+VSTCg3tcnylJDmNQH4a5oyn88Bt+3eHUt bP6O5AD3MwNhFSH8Q0PFYDNR2VCysyCxqesgLG4NhSisN4fNx6swSxxr5Rn4iHq8S0fR m8O5J5JhMom+ifRYFniXvRy6s3w5+Nct8qgQR1IHBC8WIjz1HmP73703CEUIx9Hr5CkA q4E8oFBATyEdLyBKzG0ktNJA7Hpu1B2BrpUU2qNkZI2cRBpf1nDFb8H3uBFyGUBmqzWM Okp80aCvl7+nj+4TXB2CG6EZhUETKljPPNG7PbsdJILAJIxpt4bc5ekzMY00SjK2awhR u17w== 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=zBLkp4ACPTazmjPNrlv/57ssiAbYaRhM1wboTYBBHDY=; b=sXRgl2oImYdviApXrAyqE7eSnSr+FgvsSgy5WLzLRgddQUDNkdr2kIhf1/lv+Xblz8 taHfUlYWr+JKeuemeJJvjaE8l/qyyhhtRKHIJSldgm9DdlHHfr7ECrUAmk8OEOjj7WQd E0KQ13XFZC0p0S/+ExNmMAtATjOZfSuch+z02iShtLu/VJgw9k/fbxylzO+NIFbAiatU nzrQdzHpJNyW+dWmBToB0BN6dc3VdPWIYb0/NRA/TXyd/U9E1UHvI5+FP1IBnnRPXBlx jYAcWfrkAo2vOYJh0wF+VCeuyAaEtWBsMXSFq2K5mv2RDInsFVgOeMrYnly7WGpW9Nbx 4SeQ== X-Gm-Message-State: AOAM530a37Xj9ULPjlJ8gdxVXpTPUGEH1LctpgR44T4AoU2yNCxza9vc LHmMFBUn1PbzEuxhzpFWMi3NUF7nTfA= X-Received: by 2002:aa7:8182:: with SMTP id g2mr12519947pfi.261.1598453646914; Wed, 26 Aug 2020 07:54:06 -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.54.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 07:54:06 -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 , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org Subject: [PATCH v2 18/23] s390: use asm-generic/mmu_context.h for no-op implementations Date: Thu, 27 Aug 2020 00:52:44 +1000 Message-Id: <20200826145249.745432-19-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: Heiko Carstens Cc: Vasily Gorbik Cc: Christian Borntraeger Cc: linux-s390@vger.kernel.org Signed-off-by: Nicholas Piggin --- arch/s390/include/asm/mmu_context.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/arch/s390/include/asm/mmu_context.h b/arch/s390/include/asm/mmu_context.h index c9f3d8a52756..66f9cf0a07e3 100644 --- a/arch/s390/include/asm/mmu_context.h +++ b/arch/s390/include/asm/mmu_context.h @@ -15,6 +15,7 @@ #include #include +#define init_new_context init_new_context static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm) { @@ -69,8 +70,6 @@ static inline int init_new_context(struct task_struct *tsk, return 0; } -#define destroy_context(mm) do { } while (0) - static inline void set_user_asce(struct mm_struct *mm) { S390_lowcore.user_asce = mm->context.asce; @@ -125,9 +124,7 @@ static inline void finish_arch_post_lock_switch(void) set_fs(current->thread.mm_segment); } -#define enter_lazy_tlb(mm,tsk) do { } while (0) -#define deactivate_mm(tsk,mm) do { } while (0) - +#define activate_mm activate_mm static inline void activate_mm(struct mm_struct *prev, struct mm_struct *next) { @@ -136,4 +133,6 @@ static inline void activate_mm(struct mm_struct *prev, set_user_asce(next); } +#include + #endif /* __S390_MMU_CONTEXT_H */ -- 2.23.0