From: "Jan Beulich" Subject: [PATCH] x86/shadow: fix big-memory build Date: Thu, 23 Apr 2015 11:38:46 +0100 Message-ID: <5538E7D602000078000750C3@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part685C08A6.0__=" Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YlEWt-0003Nw-R8 for xen-devel@lists.xenproject.org; Thu, 23 Apr 2015 10:38:47 +0000 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 Cc: Tim Deegan List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part685C08A6.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 --- 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 dom /* 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; --=__Part685C08A6.0__= Content-Type: text/plain; name="x86-sh-bigmem.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-sh-bigmem.patch" x86/shadow: fix big-memory build=0A=0AModifiers to the pointer passed into = list_next_entry() are also being=0Aapplied to the macro's return type, and = hence if the input pointer is=0Aconst-qualified a variable the result gets = assigned to would also need=0Ato be. As that doesn't seem desirable here, = drop the const qualifier=0Aon the input pointer instead.=0A=0ASigned-off-by= : Jan Beulich =0A=0A--- a/xen/arch/x86/mm/shadow/private= .h=0A+++ b/xen/arch/x86/mm/shadow/private.h=0A@@ -607,7 +607,7 @@ static = inline void sh_put_ref(struct dom=0A /* Walk the list of pinned shadows, = from the tail forwards,=0A * skipping the non-head-page entries */=0A = static inline struct page_info *=0A-prev_pinned_shadow(const struct = page_info *page,=0A+prev_pinned_shadow(struct page_info *page,=0A = const struct domain *d)=0A {=0A struct page_info *p;=0A --=__Part685C08A6.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part685C08A6.0__=--