From patchwork Tue Jul 28 03:34:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 11688057 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 8FF566C1 for ; Tue, 28 Jul 2020 03:35:47 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5B16B206D4 for ; Tue, 28 Jul 2020 03:35:47 +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="Y4v7O+c6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5B16B206D4 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 1AA2D8D0003; Mon, 27 Jul 2020 23:35:46 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 15AAA8D0002; Mon, 27 Jul 2020 23:35:46 -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 F16858D0003; Mon, 27 Jul 2020 23:35:45 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0005.hostedemail.com [216.40.44.5]) by kanga.kvack.org (Postfix) with ESMTP id D68928D0002 for ; Mon, 27 Jul 2020 23:35:45 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id A1C09181AC9CB for ; Tue, 28 Jul 2020 03:35:45 +0000 (UTC) X-FDA: 77086070250.15.boy12_3d0e91626f66 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin15.hostedemail.com (Postfix) with ESMTP id 7A9591814B0C9 for ; Tue, 28 Jul 2020 03:35:45 +0000 (UTC) X-Spam-Summary: 1,0,0,8503f88aab7e965f,d41d8cd98f00b204,npiggin@gmail.com,,RULES_HIT:41:69:355:379:541:800:960:973:988:989:1260:1311:1314:1345:1359:1431:1437:1515:1534:1541:1711:1730:1747:1777:1792:1978:1981:2194:2199:2393:2559:2562:2693:3138:3139:3140:3141:3142:3353:3865:3867:3868:3871:3872:4250:5007:6119:6261:6653:7514:7903:9413:9592:10004:11026:11657:11658:11914:12043:12109:12296:12297:12438:12517:12519:12555:12895:13069:13255:13311:13357:13894:13972:14096:14181:14384:14394:14687:14721:21080:21433:21444:21451:21627:21666:21795:21990:30034:30054,0,RBL:209.85.214.193:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100;04ygz1j4gck35pda6yq5u9hhj9q8oopj8i4u8f9shn1hdfgbe4nsbj4x1czqicw.h4a3amwwsasu1szskrzpxujjnj4mwq5eqdyhx37b7zi78wyu57rpicjngu3kaya.4-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:neutral,Custom_rules:0:0:0,LFtime:23,LUA_SUMMARY:none X-HE-Tag: boy12_3d0e91626f66 X-Filterd-Recvd-Size: 4701 Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by imf02.hostedemail.com (Postfix) with ESMTP for ; Tue, 28 Jul 2020 03:35:45 +0000 (UTC) Received: by mail-pl1-f193.google.com with SMTP id p1so9191210pls.4 for ; Mon, 27 Jul 2020 20:35:44 -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=1JLKzjyC1SBrEiODvVn8VxTDptzEZPqzW7tXvM9+ThQ=; b=Y4v7O+c6dQW18i+moFxlIujKDWDg8TDWOxk7VAOQUv7lpN3eIGmWg65qbJokQXpv40 UuT6EROOAMfswGgIFaroSWv+Mxql9qoz1IHiogbhHvaOeJP1mcnqhbDtYipKgiKhmP4G BM/hy0mcL/r4XYZNyEQ/Dq3DNN4I4sCLkCLJRfIpmVHZNZDKsRDobQidEP4GEcXETmgo e0Whauxc61AhbEoBPJup+JQsoTFN2+iNEOikR5SKtBYnAyNqDLjB7PwWnbfMG9758iOP ahvYvtqrPAIyVMePToqBg8V2Nwy0qyOncpCfHJtYy8nW/uEDwftqKXhZkuo+JYERt7QE BKdA== 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=1JLKzjyC1SBrEiODvVn8VxTDptzEZPqzW7tXvM9+ThQ=; b=lLjUvAR3soGy06G3WIyOVoNnyZa6WszU6CFdXS1NmGdTbj6+og95eVWhfRM1mOtQJ/ gCPjnJ5Fd2voBSQQ4LZgLQTHPIBoLLvMkfjgvL8JUmE6XiN+MIwZ3NVfq8nEAuGmvd2X qGP5DeKJoHMYidGNV1AR0ugtJuTxVhqIJ1Bd9mUEmQmhec5A3jPxFCqJoA+SOg+n8rzc 0adDQKyEeHS7HazTXSsPjixINJ3EUi+st313SZrQMiM6k4s/oq1ybc4Lni23ZowZOFqO 1Fl1U56W0bPKS+q/3JBVLh8PG9g3hLA1sd+DTwaA6EHVVMJgrPkfdnd+O6pp/B5YDQXG eQpQ== X-Gm-Message-State: AOAM530NFDB1hOsqFiqfY6uWCUD1BkJ+/4hPFjPrkrkpcemwWWkV7npG kxVo9wr033rnwE1CfbEylAQ= X-Google-Smtp-Source: ABdhPJwI1FVOs/aIP3aOo7bYYcO5O1FN4uPDxItlYfSi2TqGuyUZ2WAOWZxW7EZLnuLC+TqbMNcSKg== X-Received: by 2002:a17:90a:f493:: with SMTP id bx19mr2119021pjb.134.1595907344315; Mon, 27 Jul 2020 20:35:44 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 20:35:43 -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 , Guan Xuetao Subject: [PATCH 22/24] unicore32: use asm-generic/mmu_context.h for no-op implementations Date: Tue, 28 Jul 2020 13:34:03 +1000 Message-Id: <20200728033405.78469-23-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: 7A9591814B0C9 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 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: Cc: Guan Xuetao Signed-off-by: Nicholas Piggin --- arch/unicore32/include/asm/mmu_context.h | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/arch/unicore32/include/asm/mmu_context.h b/arch/unicore32/include/asm/mmu_context.h index 388c0c811c68..e1751cb5439c 100644 --- a/arch/unicore32/include/asm/mmu_context.h +++ b/arch/unicore32/include/asm/mmu_context.h @@ -18,24 +18,6 @@ #include #include -#define init_new_context(tsk, mm) 0 - -#define destroy_context(mm) do { } while (0) - -/* - * This is called when "tsk" is about to enter lazy TLB mode. - * - * mm: describes the currently active mm context - * tsk: task which is entering lazy tlb - * cpu: cpu number which is entering lazy tlb - * - * tsk->mm will be NULL - */ -static inline void -enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) -{ -} - /* * This is the actual mm switch as far as the scheduler * is concerned. No registers are touched. We avoid @@ -52,9 +34,6 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next, cpu_switch_mm(next->pgd, next); } -#define deactivate_mm(tsk, mm) do { } while (0) -#define activate_mm(prev, next) switch_mm(prev, next, NULL) - /* * We are inserting a "fake" vma for the user-accessible vector page so * gdb and friends can get to it through ptrace and /proc//mem. @@ -95,4 +74,7 @@ static inline bool arch_vma_access_permitted(struct vm_area_struct *vma, /* by default, allow everything */ return true; } + +#include + #endif