Skip to contentSkip to conversation

x86/shadow: fix big-memory build

PATCH In review Jan Beulich 2 participants 2 messages Apr 23, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

xen/arch/x86/mm/shadow/private.h +1 -1
@@ -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;

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.

xen/arch/x86/mm/shadow/private.h +1 -1
@@ -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;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Jan Beulich

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.