From patchwork Wed Apr 3 08:39:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1075600 Return-Path: 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=) 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="IFSMYfyp"; 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="NnM5WxdH"; 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 44Yzyd6qBBz9sSJ for ; Wed, 3 Apr 2019 19:39:21 +1100 (AEDT) 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=03CqRc3d4J9S6DoE4RtEd1fe89y8uyW2SfT3XVcrZzk=; b=IFSMYfypC3Fgp5 XPf6foXfWS6P28B+9tH14K+P2m6k2Y3WoUN2qO0CPA+bbaX1W7fuVtdNHrLjT7wPuAHR2ntuLCfqu ispsNR9vZyfPAzyIELbhZvP3DaPTvVk5ReHfD/PGYMWpO9ngL27F3h5lUzVprU6t3JAcvo3NjEklm AftVaVWpS7hJn5qwTZ2GhERjoFuef15YaWhhR1XAF5yBkyDGyzkeDdx+I8aIcfVH5I0yrvt9hnPZj fWfPK5v6VC380dxfAP5c3fup84FVjqOq92mw00rZKlLUWA4JSp+kH8bbECGKr0vdShaztmLo2Zxay qIZ2iCCELPPUF104anww==; 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 1hBbQR-0008MG-CA; Wed, 03 Apr 2019 08:39:15 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBbQP-0008KP-5X for linux-um@lists.infradead.org; Wed, 03 Apr 2019 08:39:14 +0000 Received: by mail-wr1-x443.google.com with SMTP id j9so20152455wrn.6 for ; Wed, 03 Apr 2019 01:39:12 -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=uWuSY7tJ8t1gp+W6Vko8GNs6uuVCucr3GTT5NrKpIYQ=; b=NnM5WxdHORRPSE8oBRqknUrB9FXX3Vx/bVr0SHDpWDFAawooLTtKsIxd0l2DlXEv1U I8wGii689Jn+gtVhaX1W0nbB8hfreZR53Vdb5cumv9TN4zg0IKS0otrKXdPbf66KmQ4U pr1dqxZi/HmTfpnR1C9YERgbrSr8ccidMPNNE7NiYNyDzdQgZvGepQHz/CNl1ysxFPd1 CsQ43Pz3UuT9QhqXqGNjtoUrivCdwzDcr1YPz0dnLk29pkjXp8KEjDDMl2EQ6irrlco2 rR0xw3Ins4nbp+fFI5uL7qEwss9HEcLCYULrIF3XlitaK8h3VI+yd7lPWgc/nwka4Cxy g6Dw== 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=uWuSY7tJ8t1gp+W6Vko8GNs6uuVCucr3GTT5NrKpIYQ=; b=dLHQKz5nXu9pjnsKzw1VFHrZyDU7av5TqArssx+Ryga5Zc1Ew8Fegyvwj9KYRU10Az wHfPvI1qW5kwNmAGuIxPbuPFVaAaA5fro02rt/T+BLdhanpxKzx6zrqQcrnqY+xgSwuc KuFhzdE64Tbgas7rqspVYZh/42wxww4JiEwhO11cZ6+XSwyk8eOGU4VNQ1bipmVcto04 fOUK6fDvEIC0mKaF5nrBpbxhPc2ZbtHCifEz6HKsRQepqfh1LB4iaZOgD+kWAlUqoa6R mwuHkVS1l1p9hUjbaEg7Mn9BEHqIXftFDhGxAkFkEP9iljMzwl9zhE+iIx5p+Z+qkQG+ ZSig== X-Gm-Message-State: APjAAAVBtk+B37ZDGt9AG4e9ccN9h/203/JtCTY6xFzt0XBrQ5Pjm9WG afzJFr7jIDFOWeP//SxWyj3iiA== X-Google-Smtp-Source: APXvYqy1ypNk2TcNV1zVLdlIH96i21X0180yvn9dRbkELYVUji9X9RB37S87ZHZLqi2nDUmUUdpmFQ== X-Received: by 2002:adf:f48d:: with SMTP id l13mr51146262wro.2.1554280751674; Wed, 03 Apr 2019 01:39:11 -0700 (PDT) Received: from localhost.localdomain (aputeaux-684-1-29-77.w90-86.abo.wanadoo.fr. [90.86.254.77]) by smtp.gmail.com with ESMTPSA id v192sm23655771wme.24.2019.04.03.01.39.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Apr 2019 01:39:10 -0700 (PDT) From: Bartosz Golaszewski To: Jeff Dike , Richard Weinberger , Anton Ivanov , Geert Uytterhoeven Subject: [RESEND PATCH 3/4] um: define set_pte_at() as a static inline function, not a macro Date: Wed, 3 Apr 2019 10:39:01 +0200 Message-Id: <20190403083902.3975-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190403083902.3975-1-brgl@bgdev.pl> References: <20190403083902.3975-1-brgl@bgdev.pl> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190403_013913_303159_5AEDDB3B X-CRM114-Status: UNSURE ( 9.06 ) 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:443 listed in] [list.dnswl.org] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Golaszewski , linux-um@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "linux-um" Errors-To: linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Bartosz Golaszewski When defined as macro, the mm argument is unused and subsequently the variable passed as mm is considered unused by the compiler. This fixes a build warning. Signed-off-by: Bartosz Golaszewski --- arch/um/include/asm/pgtable.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)