From patchwork Tue Jul 28 03:33:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 11688047 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DC3F1913 for ; Tue, 28 Jul 2020 03:35:30 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A77172075A for ; Tue, 28 Jul 2020 03:35:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dVK/1Eli" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A77172075A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A84F56B0036; Mon, 27 Jul 2020 23:35:29 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id A37646B0037; Mon, 27 Jul 2020 23:35:29 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8D5B96B0055; Mon, 27 Jul 2020 23:35:29 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0149.hostedemail.com [216.40.44.149]) by kanga.kvack.org (Postfix) with ESMTP id 716576B0036 for ; Mon, 27 Jul 2020 23:35:29 -0400 (EDT) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 3AF61181AC9BF for ; Tue, 28 Jul 2020 03:35:29 +0000 (UTC) X-FDA: 77086069578.27.grape46_1a0224b26f66 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin27.hostedemail.com (Postfix) with ESMTP id 1535F3D663 for ; Tue, 28 Jul 2020 03:35:29 +0000 (UTC) X-Spam-Summary: 1,0,0,ff82efda2ab74f85,d41d8cd98f00b204,npiggin@gmail.com,,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1311:1314:1345:1359:1431:1515:1534:1541:1711:1730:1747:1777:1792:1801:1978:1981:2194:2199:2393:2559:2562:3138:3139:3140:3141:3142:3352:3876:3877:4321:4605:5007:6114:6261:6642:6653:7514:9413:9592:10004:11026:11473:11657:11658:11914:12043:12109:12296:12297:12438:12517:12519:12555:12895:13069:13311:13357:13894:14096:14181:14384:14394:14687:14721:21080:21433:21444:21451:21627:21666:21990:30054,0,RBL:209.85.210.196:@gmail.com:.lbl8.mailshell.net-66.100.201.100 62.50.0.100;04yf59xz8qgpcu6rcnsrgp8ob3xqzyc4ygk7gyu6td91o7osuddcxmb8iheijpa.396cyugx1gyi399puhew5f6c84jd595o7zps5gjda69ayzzxpgsonwad6f59dn1.o-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: grape46_1a0224b26f66 X-Filterd-Recvd-Size: 4724 Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by imf43.hostedemail.com (Postfix) with ESMTP for ; Tue, 28 Jul 2020 03:35:28 +0000 (UTC) Received: by mail-pf1-f196.google.com with SMTP id d188so4134736pfd.2 for ; Mon, 27 Jul 2020 20:35:28 -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=dVK/1EliSimIRnUstbAmbx25mSwdR+Js0puQBQW3DsLX1VrptOUZVyUDjo7npj1Mhx L3e5K36rO3npq4glvDBg4YqqkI4XpYAFUSzxOS1MTAz6RO3a7P1MeyS9q/dW3kz/gxle /9G3Jbo4dq+aolt4j2XDZLDyfRLvX2Bu2gB0/UlCQhw8WzxyINP0JWeWmD6swLpTVbI9 MkiRqfViP/O5kKgY773WmCUMGAj6Io26pzg5z2lJr2jlGjHo5EWu36iiYvJct6hdmDjs xEXi9awKzb8oLJA64GjYb8TUmyGvAEj44+0XmvekMAPPeQqnnY3LYvisXSyA/Q5guxNk tF3w== 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=e5g9oDqz7jijCIptom9gqhpMr+mimVXT/TzeTu06MdrDxqnJAJWzAK0OMjs2JxQWnX uklC3UeNqioLREq9qwpqAmlRzpDKlmlHXaPDi3RKYye1Iwwfpkn8/AwpUysE+FhbRft8 iXcPSMIkw3GPezWwBPsmnQKHHsRXx5TSfht49As+e7efelO6wcpfrFGc22TPHiAE6ER+ oiAe5JsEoPbzvIG2uAMwIhvqom7tCnXihmvLvdGA8wvB8o/WwBbNR+E4iDV0QKtwN6MJ TmM7F60GPfSaA/GbFQGUb1GSf3E1Aau3bQcP+I5IR22iTgbMbGGhe9FkSiiO90TzCi5q wWhg== X-Gm-Message-State: AOAM531Q3EYlbITHJc2iEk+ec3iRmAelERbOhhxZinldGp/IkjKg3f1k 540AwiKl69RahHGe2KdPxyY= X-Google-Smtp-Source: ABdhPJwAK20YJK9/QxvuhDFbG5k71L1N7JplcOMAW7nPJfoIn8DDaWASYvwHqmKUD5r7MPuX4k/MPw== X-Received: by 2002:a62:3207:: with SMTP id y7mr22632527pfy.95.1595907327960; Mon, 27 Jul 2020 20:35:27 -0700 (PDT) Received: from bobo.ozlabs.ibm.com (110-174-173-27.tpgi.com.au. [110.174.173.27]) by smtp.gmail.com with ESMTPSA id r4sm998707pji.37.2020.07.27.20.35.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 20:35:27 -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 18/24] s390: use asm-generic/mmu_context.h for no-op implementations Date: Tue, 28 Jul 2020 13:33:59 +1000 Message-Id: <20200728033405.78469-19-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200728033405.78469-1-npiggin@gmail.com> References: <20200728033405.78469-1-npiggin@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 1535F3D663 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 */