Message ID | 20200901141539.1757549-15-npiggin@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=HLuE=CK=kvack.org=owner-linux-mm@kernel.org> 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 6224414E5 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 1 Sep 2020 14:17:59 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2C0F9206EB for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 1 Sep 2020 14:17:59 +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="XxxGJfPE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2C0F9206EB 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 31AB490001A; Tue, 1 Sep 2020 10:17:58 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 2CA6F90000D; Tue, 1 Sep 2020 10:17:58 -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 1B99B90001A; Tue, 1 Sep 2020 10:17:58 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0004.hostedemail.com [216.40.44.4]) by kanga.kvack.org (Postfix) with ESMTP id 0465190000D for <linux-mm@kvack.org>; Tue, 1 Sep 2020 10:17:58 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id AB0873655 for <linux-mm@kvack.org>; Tue, 1 Sep 2020 14:17:57 +0000 (UTC) X-FDA: 77214696594.20.crate11_2d169e027098 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin20.hostedemail.com (Postfix) with ESMTP id 029E4180C0626 for <linux-mm@kvack.org>; Tue, 1 Sep 2020 14:17:53 +0000 (UTC) X-Spam-Summary: 1,0,0,2f073d862fd81a49,d41d8cd98f00b204,npiggin@gmail.com,,RULES_HIT:41: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:3138:3139:3140:3141:3142:3352:3867:3870:3871:3873:4321:4605:5007:6119:6261:6653:7514:7875:7903:9413:9592:10004:11026:11232:11657:11658:11914:12043:12109:12296:12297:12517:12519:12555:12895:13069:13255:13311:13357:13894:14181:14384:14394:14687:14721:21080:21433:21444:21451:21627:21666:30054,0,RBL:209.85.210.196:@gmail.com:.lbl8.mailshell.net-66.100.201.100 62.50.0.100;04yrriamesb6o8h1jp9r5dh9m8eeuoptpwiws8ukdb5shbktxxprcucr3bm3zhf.d4xcnk19zbwc7dwrfnphxeu9ex13e6hbhzcxawf9mfpbnpi3nhtxhy36m88ccxf.w-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:26,LUA_SUMMARY:none X-HE-Tag: crate11_2d169e027098 X-Filterd-Recvd-Size: 4658 Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by imf14.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Tue, 1 Sep 2020 14:16:42 +0000 (UTC) Received: by mail-pf1-f196.google.com with SMTP id m8so869161pfh.3 for <linux-mm@kvack.org>; Tue, 01 Sep 2020 07:16:42 -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=0vzoL+VsrIPHuqh1rtEB2SuTababb460vueko2jTOo4=; b=XxxGJfPETQ7BZiIuZPtIZTdbh7ieNNvvgRcIjzPetj4CA6WlA6eQmTamnSI4ThlLOp I7Bwm5vBwBcLIzkRWQszNO5+mqimneWWmxfugSbuIDaZBS1IFgcKiHHRPoGqQ9F0f1Co EtKxeYYXyyTeeVAotBk5cJhyUZaR4+HBsL5QEX1us7JCul4yTuZkY6ldhldS6dO979lI 6GMBbSl5F4bzmlOnmQPmXLMDigRNfA8+tv59CLpLU2rwgaSkfRh0VzP3KXE3IfkGNyw9 zEyx5WAdD5EPiTaL9zeyWyu9rVYM327qiAvJMWhWZCNi3jRtlhh4RqwMP6Y+qcdURY6h n5iw== 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=0vzoL+VsrIPHuqh1rtEB2SuTababb460vueko2jTOo4=; b=uPueyu+xsg+R6ZaYka6D0rwLEsf3OLJNviepY47JtnC727fPmloIUAACuC1wsCmXP6 T+pzpPIcW6iukVA6D0ExpKgfnTLSd2zLXG7tyeFujAdpColM2gClIZsJ8dKLYnjUKrYS Djwq4o2RPYE8onxpf0G0Jt64xajvKPFzfsjeD1OszyZOq+XOFOQoEIxyhFMBQ9VsVnvI T+aiwjxDm4acPbpg2B0H9wCZZUzrIXlFyEYwuOWooT/hVOxHPMGL51blphVqoBM4ueQL eLS442j32yReFPFxOWrWuBcezqqvTOnElatsSqnQRnpKO2qxEVBM/bhkZwS2VSie+/03 f89A== X-Gm-Message-State: AOAM532n6GKdiGoZioyiubyB9A1rIb0t9c6hhmcAsynAcrD06f+v/S+4 MXV7Q5laaUsteDEPF9r7Bt4= X-Google-Smtp-Source: ABdhPJxhdXGBFtIiSfY5hgzmizcaBGI6SG79Dre9MXBlOMApIf1kkDG0o9XLXTCLh5Pm5ekdjZE4cg== X-Received: by 2002:a65:5689:: with SMTP id v9mr1729375pgs.271.1598969802057; Tue, 01 Sep 2020 07:16:42 -0700 (PDT) Received: from bobo.ibm.com ([203.185.249.227]) by smtp.gmail.com with ESMTPSA id w9sm2212816pgg.76.2020.09.01.07.16.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 07:16:41 -0700 (PDT) From: Nicholas Piggin <npiggin@gmail.com> To: linux-arch@vger.kernel.org Cc: Nicholas Piggin <npiggin@gmail.com>, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Arnd Bergmann <arnd@arndb.de>, Jonas Bonn <jonas@southpole.se>, Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>, Stafford Horne <shorne@gmail.com>, openrisc@lists.librecores.org Subject: [PATCH v3 14/23] openrisc: use asm-generic/mmu_context.h for no-op implementations Date: Wed, 2 Sep 2020 00:15:30 +1000 Message-Id: <20200901141539.1757549-15-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200901141539.1757549-1-npiggin@gmail.com> References: <20200901141539.1757549-1-npiggin@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 029E4180C0626 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam02 Content-Transfer-Encoding: quoted-printable 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: <linux-mm.kvack.org> |
Series |
Use asm-generic for mmu_context no-op functions
|
expand
|
diff --git a/arch/openrisc/include/asm/mmu_context.h b/arch/openrisc/include/asm/mmu_context.h index ced577542e29..a6702384c77d 100644 --- a/arch/openrisc/include/asm/mmu_context.h +++ b/arch/openrisc/include/asm/mmu_context.h @@ -17,13 +17,13 @@ #include <asm-generic/mm_hooks.h> +#define init_new_context init_new_context extern int init_new_context(struct task_struct *tsk, struct mm_struct *mm); +#define destroy_context destroy_context extern void destroy_context(struct mm_struct *mm); extern void switch_mm(struct mm_struct *prev, struct mm_struct *next, struct task_struct *tsk); -#define deactivate_mm(tsk, mm) do { } while (0) - #define activate_mm(prev, next) switch_mm((prev), (next), NULL) /* current active pgd - this is similar to other processors pgd @@ -32,8 +32,6 @@ extern void switch_mm(struct mm_struct *prev, struct mm_struct *next, extern volatile pgd_t *current_pgd[]; /* defined in arch/openrisc/mm/fault.c */ -static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) -{ -} +#include <asm-generic/mmu_context.h> #endif
Cc: Jonas Bonn <jonas@southpole.se> Cc: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> Cc: Stafford Horne <shorne@gmail.com> Cc: openrisc@lists.librecores.org Signed-off-by: Nicholas Piggin <npiggin@gmail.com> --- Please ack or nack if you object to this being mered via Arnd's tree. arch/openrisc/include/asm/mmu_context.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)