From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: [PATCH 06/34] xen/x86: shadow: sh_next_page is only used when GUEST_PAGING_LEVELS = 2 Date: Tue, 25 Mar 2014 16:55:13 +0000 Message-ID: <1395766541-23979-7-git-send-email-julien.grall@linaro.org> References: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: 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: by mail-ee0-f54.google.com with SMTP id d49so690866eek.27 for ; Tue, 25 Mar 2014 09:56:01 -0700 (PDT) In-Reply-To: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Keir Fraser , ian.campbell@citrix.com, Julien Grall , tim@xen.org, stefano.stabellini@citrix.com, Jan Beulich List-Id: xen-devel@lists.xenproject.org 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) -- 1.7.10.4