From: Jan Beulich Date: Thu, 23 Apr 2015 11:10:19 +0000 (+0200) Subject: x86/shadow: fix big-memory build X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3370 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=92ff75384bce7a11e27fbfaf0c531e88dd1ab4c7;p=xen.git x86/shadow: fix big-memory build Modifiers to the pointer passed into list_next_entry() are also being applied to the macro's return type, and hence if the input pointer is const-qualified a variable the result gets assigned to would also need to be. As that doesn't seem desirable here, drop the const qualifier on the input pointer instead. Signed-off-by: Jan Beulich Acked-by: Tim Deegan --- diff --git a/xen/arch/x86/mm/shadow/private.h b/xen/arch/x86/mm/shadow/private.h index 64dd2baebb..f72ea9fe6d 100644 --- a/xen/arch/x86/mm/shadow/private.h +++ b/xen/arch/x86/mm/shadow/private.h @@ -607,7 +607,7 @@ static inline void sh_put_ref(struct domain *d, mfn_t smfn, paddr_t entry_pa) /* Walk the list of pinned shadows, from the tail forwards, * skipping the non-head-page entries */ static inline struct page_info * -prev_pinned_shadow(const struct page_info *page, +prev_pinned_shadow(struct page_info *page, const struct domain *d) { struct page_info *p;