projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b62c03
)
arm: const-correctness in virt_to_maddr
author
Ian Campbell
<ian.campbell@citrix.com>
Fri, 30 Nov 2012 12:20:23 +0000
(12:20 +0000)
committer
Ian Campbell
<ian.campbell@citrix.com>
Fri, 30 Nov 2012 12:20:23 +0000
(12:20 +0000)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/include/asm-arm/mm.h
patch
|
blob
|
history
diff --git
a/xen/include/asm-arm/mm.h
b/xen/include/asm-arm/mm.h
index 260af35c778c25a34131542f40902ca79ed2bccb..e95ece1047ec7d0592ebd8b449046e013937f69a 100644
(file)
--- a/
xen/include/asm-arm/mm.h
+++ b/
xen/include/asm-arm/mm.h
@@
-179,7
+179,7
@@
extern void clear_fixmap(unsigned map);
#define paddr_to_pdx(pa) pfn_to_pdx(paddr_to_pfn(pa))
-static inline paddr_t virt_to_maddr(void *va)
+static inline paddr_t virt_to_maddr(
const
void *va)
{
uint64_t par = va_to_par((uint32_t)va);
return (par & PADDR_MASK & PAGE_MASK) | ((unsigned long) va & ~PAGE_MASK);