From patchwork Tue Mar 25 16:55:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 27046 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f198.google.com (mail-yk0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 89D2C20539 for ; Tue, 25 Mar 2014 16:57:14 +0000 (UTC) Received: by mail-yk0-f198.google.com with SMTP id 9sf3759024ykp.1 for ; Tue, 25 Mar 2014 09:57:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=qJrxW4qlkSFZlXM/uT1uyzY3gRn353APfehT0N56TNQ=; b=gr8ONMUM8sRmmMbsIM/Q61VBPkrqty9TE0UmgqqAva+o8FIuY28sdgkE2W+HMk4N5y VPWbc/AyGfz9wukD+l3WWXlbzXwEVTC17hEuQ+RyN7krhIs8wyuvtca36OvVYxogw+3k VBsEGVoGyniWU72SuCTGLwiM8W7kUwrqP7+fpTosTdq+drbjhdmzpEF5Qf/cywrJRier aS4ftb0mt5J7v7oBstl78iqOkphQ6uaZYDbXDs1hB7j/s2gBXxZI/lF0uszWVOaK23fO W0VoDJRO0h5tRt4JNmB8ugAJudyzWdzvnhkTxCudAVTCAJuTZ1zMnTpKZYDSU6Wjul2p u7WQ== X-Gm-Message-State: ALoCoQnpbbxECuO/wNRB/ER0uhytnb6jXil1SEBN+n2pQtHk7NKPFUs18ze5TSHX011oyBzaDW5r X-Received: by 10.224.13.12 with SMTP id z12mr28812392qaz.7.1395766634646; Tue, 25 Mar 2014 09:57:14 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.24.210 with SMTP id 76ls256504qgr.66.gmail; Tue, 25 Mar 2014 09:57:14 -0700 (PDT) X-Received: by 10.58.152.142 with SMTP id uy14mr23749737veb.4.1395766634579; Tue, 25 Mar 2014 09:57:14 -0700 (PDT) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id fn10si3952854vdc.135.2014.03.25.09.57.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:57:14 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.172; Received: by mail-ve0-f172.google.com with SMTP id jx11so896426veb.3 for ; Tue, 25 Mar 2014 09:57:14 -0700 (PDT) X-Received: by 10.52.135.132 with SMTP id ps4mr15310361vdb.2.1395766634277; Tue, 25 Mar 2014 09:57:14 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp320294vck; Tue, 25 Mar 2014 09:57:13 -0700 (PDT) X-Received: by 10.52.250.4 with SMTP id yy4mr415197vdc.56.1395766633901; Tue, 25 Mar 2014 09:57:13 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id dl6si3861157veb.127.2014.03.25.09.57.13 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:57:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUdx-0008HJ-HL; Tue, 25 Mar 2014 16:56:05 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUdv-0008FR-7d for xen-devel@lists.xenproject.org; Tue, 25 Mar 2014 16:56:03 +0000 Received: from [193.109.254.147:12563] by server-3.bemta-14.messagelabs.com id 77/E0-22179-225B1335; Tue, 25 Mar 2014 16:56:02 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-3.tower-27.messagelabs.com!1395766561!4062928!1 X-Originating-IP: [74.125.83.54] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 17423 invoked from network); 25 Mar 2014 16:56:01 -0000 Received: from mail-ee0-f54.google.com (HELO mail-ee0-f54.google.com) (74.125.83.54) by server-3.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 25 Mar 2014 16:56:01 -0000 Received: by mail-ee0-f54.google.com with SMTP id d49so690866eek.27 for ; Tue, 25 Mar 2014 09:56:01 -0700 (PDT) X-Received: by 10.14.205.137 with SMTP id j9mr51284709eeo.14.1395766561694; Tue, 25 Mar 2014 09:56:01 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id h47sm33377501eey.13.2014.03.25.09.56.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Mar 2014 09:56:00 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 25 Mar 2014 16:55:13 +0000 Message-Id: <1395766541-23979-7-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> References: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> Cc: Keir Fraser , ian.campbell@citrix.com, Julien Grall , tim@xen.org, stefano.stabellini@citrix.com, Jan Beulich Subject: [Xen-devel] [PATCH 06/34] xen/x86: shadow: sh_next_page is only used when GUEST_PAGING_LEVELS = 2 X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: Fix compilation with clang 3.5: multi.c:429:21: error: unused function 'sh_next_page' [-Werror,-Wunused-function] static inline mfn_t sh_next_page(mfn_t smfn) ^ Signed-off-by: Julien Grall Cc: Tim Deegan Cc: Keir Fraser Cc: Jan Beulich --- xen/arch/x86/mm/shadow/multi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/x86/mm/shadow/multi.c b/xen/arch/x86/mm/shadow/multi.c index 9dfa345..c468d4d 100644 --- a/xen/arch/x86/mm/shadow/multi.c +++ b/xen/arch/x86/mm/shadow/multi.c @@ -425,6 +425,7 @@ sh_guest_get_eff_l1e(struct vcpu *v, unsigned long addr, void *eff_l1e) * space.) */ +#if (GUEST_PAGING_LEVELS == 2) /* From one page of a multi-page shadow, find the next one */ static inline mfn_t sh_next_page(mfn_t smfn) { @@ -443,6 +444,7 @@ static inline mfn_t sh_next_page(mfn_t smfn) ASSERT(!mfn_to_page(next)->u.sh.head); return next; } +#endif static inline u32 guest_index(void *ptr)