From patchwork Wed Oct 4 18:15:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 9985279 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 794DA60586 for ; Wed, 4 Oct 2017 18:17:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7099028BD8 for ; Wed, 4 Oct 2017 18:17:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 654F528BDB; Wed, 4 Oct 2017 18:17:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DE34C28BD7 for ; Wed, 4 Oct 2017 18:17:52 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) 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 ) 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 ; 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 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 , Julien Grall 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 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Andrew Cooper --- Cc: Andrew Cooper --- xen/common/kimage.c | 3 --- 1 file changed, 3 deletions(-) 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) )