constify arguments to unmap_domain_page() & Co.
PATCH 2/4 constify arguments to unmap_domain_page() & Co.
Signed-off-by Jan Beulich <[email protected]>
xen/arch/x86/x86_32/domain_page.c +2 -2
@@ -114,7 +114,7 @@ void *map_domain_page(unsigned long mfn)return (void *)va; } -void unmap_domain_page (void *va) +void unmap_domain_page (const void *va) {unsigned int idx;struct vcpu *v;
@@ -241,7 +241,7 @@ void *map_domain_page_global(unsigned loreturn (void *)va; } -void unmap_domain_page_global (void *va) +void unmap_domain_page_global (const void *va) {unsigned long __va = (unsigned long )va;l2_pgentry_t *pl2e;
xen/include/xen/domain_page.h +3 -3
@@ -24,7 +24,7 @@ void *map_domain_page(unsigned long mfn)* Pass a VA within a page previously mapped in the context of the * currently-executing VCPU via a call to map_domain_page(). */ -void unmap_domain_page (void *va); +void unmap_domain_page (const void *va);/* * Similar to the above calls, except the mapping is accessible in all
@@ -32,7 +32,7 @@ void unmap_domain_page(void *va);* mappings can also be unmapped from any context. */ void *map_domain_page_global (unsigned long mfn); -void unmap_domain_page_global (void *va); +void unmap_domain_page_global (const void *va);#define DMCACHE_ENTRY_VALID 1U#define DMCACHE_ENTRY_HELD 2U
@@ -75,7 +75,7 @@ map_domain_page_with_cache(unsigned long }static inline void -unmap_domain_page_with_cache (void *va,struct domain_mmap_cache *cache) +unmap_domain_page_with_cache (const void *va,struct domain_mmap_cache *cache) {ASSERT (cache !=NULL ); cache->flags &= ~DMCACHE_ENTRY_HELD ;