Message ID | 20171004181526.9405-5-julien.grall@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp3428476qgn; Wed, 4 Oct 2017 11:17:32 -0700 (PDT) X-Received: by 10.107.7.166 with SMTP id g38mr3393447ioi.173.1507141052769; Wed, 04 Oct 2017 11:17:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507141052; cv=none; d=google.com; s=arc-20160816; b=jaRcFEGdyUHKHGrdYjBrF6G0LUxL3eDVvVqZ4G/eJSUUOs2o9PTpoyAupKoWbysoHE z7VC+Lxr3/ValGBRnVis8Vfa1e5ZDki2UJlUqunoXpBJS62C2vKDivW1qI+BF7bY2J/h EhFISi3o34smyCxWLwVs9ekkZxQp5MzIQgPeYngQtVftxQNONPdMpgBDAL+sbPs2tUx9 9P8pHIeNzvp5GMk+vsvvNpp5b2iLyUfNJ9wlikGxbD9tbzytpI8n6XuyHAqtb5V6hz1Z bDXyB9ngLquey20VxGGOyFc22sPAWRAdA6WSboXUGjzDzDF63wRMLVq46yFQLtvie+HA C/YQ== 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=jhHyP/zBHDhfnL3x1KeKbl/xdVe5GK19z1vR/w6bg7s=; b=hCKGXZYq/brs4LREprr54MEPmJ4A51SMyLActGP89d8rIEZrBt7PhWSSlNk+qDszpx Lo7/VPc/AbYfBCdLceRG9D9549EKArQOM0tvIGuS5P/+0E50ZAE1HI8J6HZd93JG7PNB hCjzuaq+GjiC1OhUv96S2qkQ0Dh/J74f0qIpaT98w5QSXE5q6fzxcf5WpNXDaisSEHes Og/0Nws66VlGNT/IrmIm4k3s+ca1mu7JOSJw5qIygw985j4yFaXN+ZLyqmwoxqgPPNPm y4Sr5gxvq4XxMjTOJcnRJFHe6OAe06zuB4xlhgQKO9r6Ofci/3t+00dxcAkx4ix6U8gs Ou9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=PmvtRuYk; 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 p7si3725617ioi.25.2017.10.04.11.17.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Oct 2017 11:17:32 -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=PmvtRuYk; 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 1dzoCs-00021a-Fl; Wed, 04 Oct 2017 18:15:42 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <julien.grall@linaro.org>) id 1dzoCq-00020e-W0 for xen-devel@lists.xen.org; Wed, 04 Oct 2017 18:15:41 +0000 Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id 1B/6E-02223-C4525D95; Wed, 04 Oct 2017 18:15:40 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDIsWRWlGSWpSXmKPExsVyMfTOGl1v1au RBu27tCyWfFzM4sDocXT3b6YAxijWzLyk/IoE1oyDf66wFCxkr1gxdQt7A+MR1i5GLg4hgcmM Ej833mIEcVgE5jFLfN51jxnEkRDoZ5WY82ceWxcjJ5CTJ7HzwiSgFg4gO03i+BdtiHCVxOm7K xlBwkICahJr3kRBDO1nkvhyahcTSJxNQEdi3YxakHIRAWmJa58vM4LYzAJhEgcfn2AGsYUFXC Ru7z0LFmcRUJWY9O8kK4jNK2AtcfrsBxaIVfISu9ougsU5BWwkZk1pB6sXAqrpaz/NOoFRcAE jwypGjeLUorLUIl0jQ72kosz0jJLcxMwcXUMDU73c1OLixPTUnMSkYr3k/NxNjMBwq2dgYNzB eHey3yFGSQ4mJVHeWfJXI4X4kvJTKjMSizPii0pzUosPMcpwcChJ8AapAOUEi1LTUyvSMnOAg Q+TluDgURLhTQFJ8xYXJOYWZ6ZDpE4x2nNcuHPpDxPHjYfXgeSBPbeAZMfNu3+YhFjy8vNSpc R53ysDtQmAtGWU5sENhUXqJUZZKWFeRgYGBiGegtSi3MwSVPlXjOIcjErCvF9BpvBk5pXA7X4 FdBYT0Flzmq6AnFWSiJCSamBcdGVxyPGJP7kmti1ePndHQhnzJV2p1y7d326+djrXrra658iN yYILE0N3JmV7HS9fVrPAsCfVpDE8/n3cobktCVemZr9/mda6+NaennVqznLnBR8ujGvvDv61/ d+kE49KVvj0CLHxXnE4O9G7SEys/LqnwJnYhJSUCLWVXX914zV/zxKYErpWiaU4I9FQi7moOB EAoA7SSM8CAAA= X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-13.tower-206.messagelabs.com!1507140938!99092063!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 47344 invoked from network); 4 Oct 2017 18:15:39 -0000 Received: from mail-qk0-f172.google.com (HELO mail-qk0-f172.google.com) (209.85.220.172) by server-13.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 4 Oct 2017 18:15:39 -0000 Received: by mail-qk0-f172.google.com with SMTP id w134so12405176qkb.0 for <xen-devel@lists.xen.org>; Wed, 04 Oct 2017 11:15:39 -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=WAFpBzJLsbd7GlL8m2OyDwss76024u1o4TA8VJkZ71g=; b=PmvtRuYkQw4kXw4nbYbjW5D2o1hALQ4NGvORRB7All1xt4GaUQoR0lK4xzEm9WFwUv JMB9GtIi9bM0N6CH6w1OViqt6AQzu3EsbFmSQqY4wu+ZrP1zn0AS7LcsR6eAN9VjMz7M zWbPi5eWbVLb6EbgvbNtqWF5u5MkwxCvn0WBs= 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=WAFpBzJLsbd7GlL8m2OyDwss76024u1o4TA8VJkZ71g=; b=bOKL7CR5nsF6/9gj4hZsRAns9zee8nNzhZzYP+rKgT8OedOLOo9rx+IodsFtJmKCs8 aVIj2A+RZ4dM7De7AyGHtapThaj56ruQvte47cj0eQ8vJfYLHRFOoO2DZwkm6hX3kjWo EKRPDS5LfYkJ8NvMi9ULda1eIZovJTRLCCKllAbsBGuqYMgvzxViSzmYuqASZcIj1yc6 Me6r0cXH4TGXqan6Y7US4IYw+E+KlPkUNByN8CjBsJIPZyNVGi6gqfruQs1A0GdIQUdk g0rz7B5J6jxFO2KJwZki+8XVyoXwvBHCZmukaNJs+sf+bOr/gEhNfmZ9gdFXBQVYsHPa rOGQ== X-Gm-Message-State: AMCzsaWl1CmhThkB2CVBGSbU79AvHdS3mGplWikVO4+QsPWCBhe6kQtC ghrAtVq85aFMW46Qhufqp919uTeuel8= X-Google-Smtp-Source: AOwi7QCMTbHbt19N0PvhNt3JRUBtzbiRt3EfIqGzHaOwWouO4N0YTmGwryDj0gqdOs+z7VqFPUisPQ== X-Received: by 10.55.76.150 with SMTP id z144mr9127875qka.351.1507140938554; Wed, 04 Oct 2017 11:15:38 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com ([2001:41d0:1:6c23::1]) by smtp.gmail.com with ESMTPSA id l188sm10210622qkd.43.2017.10.04.11.15.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Oct 2017 11:15:38 -0700 (PDT) From: Julien Grall <julien.grall@linaro.org> To: xen-devel@lists.xen.org Date: Wed, 4 Oct 2017 19:15:23 +0100 Message-Id: <20171004181526.9405-5-julien.grall@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171004181526.9405-1-julien.grall@linaro.org> References: <20171004181526.9405-1-julien.grall@linaro.org> Cc: Andrew Cooper <andrew.cooper3@citrix.com>, Julien Grall <julien.grall@linaro.org> Subject: [Xen-devel] [PATCH 4/7] 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
|
On 04/10/2017 19:15, Julien Grall wrote: > In the function kimage_alloc_normal_control_page, the variables mfn and > emfn are defined but not used. Remove them. > > Signed-off-by: Julien Grall <julien.grall@linaro.org> Oops. Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
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) )
In the function kimage_alloc_normal_control_page, the variables mfn and emfn are defined but not used. Remove them. Signed-off-by: Julien Grall <julien.grall@linaro.org> --- Cc: Andrew Cooper <andrew.cooper3@citrix.com> --- xen/common/kimage.c | 3 --- 1 file changed, 3 deletions(-)