Message ID | 20190411094944.12245-4-brgl@bgdev.pl |
---|---|
State | Accepted, archived |
Headers | show
Return-Path: <linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RZbiPoe1"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="S24lGq+O"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44fx8b1YNvz9s70 for <incoming@patchwork.ozlabs.org>; Thu, 11 Apr 2019 19:50:07 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KgCIYmGCrbMB7PvNgzcs5u2ZbyoZWyHxfiZDauWJjnQ=; b=RZbiPoe1ezgfkP s6tUphPxEZQ3FhkFOdtmaZTPjFzn39jyzTOC6yCyTiSBuj5CW//pxlAgE3H3XXs1T+dvUdKr/UEI4 KaMvoOqGsHLVBDCV8SYhOhNopeqSmM3wN8oB0tQYXgDiH9MXRGMANXnHZEwji7mKD87Xu9Cw6Wny3 TU/nRBr9rnl/81hij/ncYjj6ED97gXfEjK5jYM6oMBbxHLSV4GBIG1gebyMpHVHB1ijdG2gnIhCt7 k9ZgeI5IO7xT7YxE9yGGsJPuQa79eJPSMNRmL8HtPLIJTpeANk/0pH2BszXrqP5CHBpHhLmOhBvlc vspmsU7R09okqEPtIYFw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEWLC-0004ah-JD; Thu, 11 Apr 2019 09:49:54 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEWLA-0004YT-5D for linux-um@lists.infradead.org; Thu, 11 Apr 2019 09:49:53 +0000 Received: by mail-wm1-x344.google.com with SMTP id y197so5829998wmd.0 for <linux-um@lists.infradead.org>; Thu, 11 Apr 2019 02:49:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lskeiD7dYXGZh6H4CIGCeljLwENv8dVYuEzMPa3oMsM=; b=S24lGq+OG8UWPyXbCw2g+x+VvINi8uh2qwCGn0rK9DEaz1V09UHVfWFMSHnQnZwd7P dFvMm4qGhaaCoBhBPBf2/gvZhGrdgqsciuJ1pdAe8Pgz120qmLksBx7NTFyNH+5+IuBe BC/ODCH2/4cTuFXbv8Ygsvn7OKeUkeebJ/yV3FKc19Ln4A3+q9PbnhnU4s/Fe9TTj6rE 9EytLIe14aHCj0k6vyDDCFXY34kZnEsEwZ58eBItfhZLz5rGFsFx42z8O8fAVKs23I2n 9FaH+L+fXdxCew/j2HWNUuXXgCOTLY0yn7M6g2X+q6THBOnKZUAUWPmt1JJb7zYyTkOX qNdA== 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=lskeiD7dYXGZh6H4CIGCeljLwENv8dVYuEzMPa3oMsM=; b=uBOTMpkbAfbuXolTDU4X3sgRNyIs1+7XW4tuj7oNWcRsqrxoI4e1YJANUihfcbjeiE 4R9xu2TOyQbi4zVayHlgRcQJBYjwCPpUR/wOOqCKdh4o7P9rGBx/51PK9VNnl9TQ7Oyr QwGKptFC95ZG8gdkRkUw/FGWtGlzFr0CfxdZPbgL1YxE/MoUWkcSto3rpzFP9Di1rTjM B+dhISDf48EU2QGQV1NNm1Y0bnz76bv0kum+PpWutE69fsEPdHLcGpx+hszXlEecE7ls YgKNL9LsCuUVA/yTttJY2vpsnIpLolSfLXLcWCF36ppQ26gyMdJDXp4ZHUOOuFGEuPHK S76g== X-Gm-Message-State: APjAAAVUcZ0YKkI1Yuv1MJe+r5HLDf8cD33LWPkwaLxNos9tjqc74UYh LmRrTVFgO0VHxSt/XblC2DQB3w== X-Google-Smtp-Source: APXvYqwN/IK8l+a2AZq81bvRsj5vx2Vbw/Z6P0AT2q7xO9o7Ip7kSJQdF9SDQK1Px8Zq2W2Y/DkT6A== X-Received: by 2002:a05:600c:2309:: with SMTP id 9mr6213095wmo.52.1554976190645; Thu, 11 Apr 2019 02:49:50 -0700 (PDT) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id s10sm6434066wmh.0.2019.04.11.02.49.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2019 02:49:50 -0700 (PDT) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Jeff Dike <jdike@addtoit.com>, Richard Weinberger <richard@nod.at>, Anton Ivanov <anton.ivanov@cambridgegreys.com>, Geert Uytterhoeven <geert@linux-m68k.org> Subject: [RESEND PATCH 3/4] um: define set_pte_at() as a static inline function, not a macro Date: Thu, 11 Apr 2019 11:49:43 +0200 Message-Id: <20190411094944.12245-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190411094944.12245-1-brgl@bgdev.pl> References: <20190411094944.12245-1-brgl@bgdev.pl> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190411_024952_215399_81792027 X-CRM114-Status: UNSURE ( 8.58 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:344 listed in] [list.dnswl.org] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.0 DKIMWL_WL_MED DKIMwl.org - Medium sender X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-um.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-um>, <mailto:linux-um-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-um/> List-Post: <mailto:linux-um@lists.infradead.org> List-Help: <mailto:linux-um-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-um>, <mailto:linux-um-request@lists.infradead.org?subject=subscribe> Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>, linux-um@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-um" <linux-um-bounces@lists.infradead.org> Errors-To: linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
um: build and irq fixes
|
expand
|
diff --git a/arch/um/include/asm/pgtable.h b/arch/um/include/asm/pgtable.h index 9c04562310b3..b377df76cc28 100644 --- a/arch/um/include/asm/pgtable.h +++ b/arch/um/include/asm/pgtable.h @@ -263,7 +263,12 @@ static inline void set_pte(pte_t *pteptr, pte_t pteval) *pteptr = pte_mknewpage(*pteptr); if(pte_present(*pteptr)) *pteptr = pte_mknewprot(*pteptr); } -#define set_pte_at(mm,addr,ptep,pteval) set_pte(ptep,pteval) + +static inline void set_pte_at(struct mm_struct *mm, unsigned long addr, + pte_t *pteptr, pte_t pteval) +{ + set_pte(pteptr, pteval); +} #define __HAVE_ARCH_PTE_SAME static inline int pte_same(pte_t pte_a, pte_t pte_b)