Message ID | 20171005174222.29161-6-julien.grall@linaro.org |
---|---|
State | Accepted |
Commit | 49191124d93bf7bdb184481dfef7268acef880e6 |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp848322qgn; Thu, 5 Oct 2017 10:44:44 -0700 (PDT) X-Received: by 10.107.156.134 with SMTP id f128mr852025ioe.226.1507225483994; Thu, 05 Oct 2017 10:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507225483; cv=none; d=google.com; s=arc-20160816; b=MaFCBKEHBA+zmiP59I4dVZeC+F0rmyqNs/33MoT+IyxD94PXo+aUV3bYdy0MBt3U/R k69Us/0wyFHlEuZjtkF9sWH//mdAdcxQJG099HAL1Y9Q3h0fpi4lfYnUWnbpri/8KHul EuN4n7+K1ji52nTEEULNpSyANQxZDiBT/1pOeMGWvHC1q1f4EXjI+kN18FXhG+y8kTYK 1Pb1rWqANNXP6u0Gp9QOrZ/ZiBZifpFWKb+3+z3k5oUwvRCq8OvUr3XnTbWEHZrxQNX1 v+J4nPZ8ERjyf42wdrkIxBn3cD79vM8r2SRBmK0PQToXl2JjE0aq5iX/ceQLznS0WT8D XzmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:references:in-reply-to:message-id:date:to :from:dkim-signature:arc-authentication-results; bh=8Ermcb+dITnbdWldycVRFFdEVNZUv1JdnH5dszJ8zM0=; b=cdnA7N5x6T0ROZXkJ2BdH6upFCNcwiWKanaAZzjcXK8KOKigY3mAFcLXl4XP/pbK9F JsDo6Wn9UrDa7jHi/9Z0MLXL/BlA4/31uZRBXM4194V3N8j657ucpRe4QBU0NrmP22PS tvG3s7mf7Ch84DsfEJMPMOFDCLbuf7a8yk7YOZnUFeV0m67MD12O6NsnANMSisugFiST 0NVGcAs7ew0peo18lEDGNvG0xB7tc/5o3tPLcG/v+RQVMiDAD/whM2O6dp5wjx8TMFJ+ JvsGk64AnasWBQOMsjJ2R58bDvE37Ctkak2iqW11yeC0lcBKjHimk/tX04EFOuVYO0EN OuQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Fq3hGUeo; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <xen-devel-bounces@lists.xen.org> Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id x189si193035ite.199.2017.10.05.10.44.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Oct 2017 10:44:43 -0700 (PDT) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Fq3hGUeo; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <xen-devel-bounces@lists.xen.org>) id 1e0AAS-00010q-AW; Thu, 05 Oct 2017 17:42:40 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <julien.grall@linaro.org>) id 1e0AAQ-0000yw-67 for xen-devel@lists.xen.org; Thu, 05 Oct 2017 17:42:38 +0000 Received: from [85.158.143.35] by server-9.bemta-6.messagelabs.com id D1/69-03428-D0F66D95; Thu, 05 Oct 2017 17:42:37 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMIsWRWlGSWpSXmKPExsVyMfTOGl2e/Gu RBo9/q1ss+biYxYHR4+ju30wBjFGsmXlJ+RUJrBmXPl9gK+jnqHi6eTlbA+Msti5GTg4hgYmM Eut+5nUxcnGwCMxjlrj+6TUjiCMh0M8qcXX1epYuRg4gJ09i7+5KCDNN4sEHc5BeCYEKidvvt jOBhIUE1CTWvIkC6RQS6GOSuPryCyNInE1AR2LdjFqQchEBaYlrny8zgtjMAmESBx+fYAaxhQ XcJaZtOMQCYrMIqEpM3/CdFcTmFbCROPlhJiPEKnmJXW0XweKcArYS63vusEOcbyOxfMVZ5gm MggsYGVYxqhenFpWlFula6iUVZaZnlOQmZuboGhqY6eWmFhcnpqfmJCYV6yXn525iBAYaAxDs YLy7KeAQoyQHk5Ior1fWtUghvqT8lMqMxOKM+KLSnNTiQ4wyHBxKErz8eUA5waLU9NSKtMwcY MjDpCU4eJREeOVB0rzFBYm5xZnpEKlTjJYcF+5c+sPEcWDPLSDZcfPuHyYhlrz8vFQpcd49uU ANAiANGaV5cONgcXmJUVZKmJcR6EAhnoLUotzMElT5V4ziHIxKwrxWIGt5MvNK4La+AjqICei gOU1XQA4qSURISTUwLmh+7vwxUdzVTGZV7vKNXHMm9u1o/K2w6dd/ozohQ9PnPHvOWBhw7dmW tZ7pfs7tQ7/D83qfsddzXre+a73s3rbvnLe338y/9+yz2gqPGMYM1j1nQ/dM2px+Ov9M7oI3w gus5iywkDBdJdTSeuC6cNisJ/M3Vl8SmJul0scVstuHszZp8RHxDUosxRmJhlrMRcWJAJhRvn 3GAgAA X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-7.tower-21.messagelabs.com!1507225355!76593519!1 X-Originating-IP: [209.85.220.172] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6520 invoked from network); 5 Oct 2017 17:42:36 -0000 Received: from mail-qk0-f172.google.com (HELO mail-qk0-f172.google.com) (209.85.220.172) by server-7.tower-21.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 5 Oct 2017 17:42:36 -0000 Received: by mail-qk0-f172.google.com with SMTP id s14so2251120qks.6 for <xen-devel@lists.xen.org>; Thu, 05 Oct 2017 10:42:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pXA3m86mp6W7YlPpFv0VpJPYiQEror6TiQpdixAbzcc=; b=Fq3hGUeoDnvhyGoqKgFfEDFXVCQnGRtKPyhKAWnpK5L3eFr4u7vSgzt3MKKvNrxhnB CqZ1r7KnmBw5GGUL0PiV3XLkhUQrH57ulLF+9ucv4govfdHFKz6nGxRGEkMBJGP6nEo4 IbuSDuhNBxZHt5O58hPowuo1tQFuAIYaoO43I= 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; bh=pXA3m86mp6W7YlPpFv0VpJPYiQEror6TiQpdixAbzcc=; b=bOhJeFIYs1HPbK3Skwt86kv/iZgbZFGLYmwfP0sUxI+FGR6DcgCYQRVmSwnd6j34/S BvqLndfk7EaXpAs/lEvYkssZs2DWb1KZMC5pQyn6rCFnW2UvxVKnap9bK24lamzLUA9T 8v4FyFVgMriBdd8Nb7GxUHeN1j2Ib6znpvhVwVnuuN1wFR04eC+v5fe+TYETVJMqrA1d 5YVMFQRdfeJRrE3mrVYshfFxye4/83SU/++jCDSEB7wWVfeScY5oNDEiaEsXjyLF4jid Cg+oPzy5SJPeTH7WL39r0vcKTlQra6DbgrQVsuWz2nkwnAalmRij3i8YqXKOCVFEjubF c8rw== X-Gm-Message-State: AMCzsaWtJjuJTBdfuGgiogSzKcrvq7ODWfZzsKnxTm1t86jDd5bOSoNx JjO2RKwKI0lOYHvw5NM6uVcdJ+5Mgog= X-Google-Smtp-Source: AOwi7QACQNko7AlRZlCB6k+lB7UZAU6e8e85Ha/bRt7LAUe8PpExJF7eIMYjttAxse0lFFfgnhaeAQ== X-Received: by 10.55.209.27 with SMTP id s27mr19931710qki.4.1507225355459; Thu, 05 Oct 2017 10:42:35 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com ([2001:41d0:1:6c23::1]) by smtp.gmail.com with ESMTPSA id y63sm11815084qky.75.2017.10.05.10.42.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Oct 2017 10:42:35 -0700 (PDT) From: Julien Grall <julien.grall@linaro.org> To: xen-devel@lists.xen.org Date: Thu, 5 Oct 2017 18:42:18 +0100 Message-Id: <20171005174222.29161-6-julien.grall@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171005174222.29161-1-julien.grall@linaro.org> References: <20171005174222.29161-1-julien.grall@linaro.org> Cc: Andrew Cooper <andrew.cooper3@citrix.com>, Julien Grall <julien.grall@linaro.org> Subject: [Xen-devel] [PATCH v2 5/9] xen/kimage: Remove defined but unused variables X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xen.org> List-Unsubscribe: <https://lists.xen.org/cgi-bin/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xen.org> List-Help: <mailto:xen-devel-request@lists.xen.org?subject=help> List-Subscribe: <https://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" <xen-devel-bounces@lists.xen.org> |
Series |
xen: Convert __page_to_mfn and __mfn_to_page to use typesafe MFN
|
expand
|
diff --git a/xen/common/kimage.c b/xen/common/kimage.c index ebc71affd1..07587896a4 100644 --- a/xen/common/kimage.c +++ b/xen/common/kimage.c @@ -310,14 +310,11 @@ static struct page_info *kimage_alloc_normal_control_page( * destination page. */ do { - unsigned long mfn, emfn; paddr_t addr, eaddr; page = kimage_alloc_zeroed_page(memflags); if ( !page ) break; - mfn = page_to_mfn(page); - emfn = mfn + 1; addr = page_to_maddr(page); eaddr = addr + PAGE_SIZE; if ( kimage_is_destination_range(image, addr, eaddr) )