projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f582878
)
xen/x86: Constify the parameter "d" in mfn_to_gfn
author
Julien Grall
<julien.grall@arm.com>
Tue, 7 May 2019 15:14:46 +0000
(16:14 +0100)
committer
Julien Grall
<julien.grall@arm.com>
Tue, 21 May 2019 12:42:21 +0000
(13:42 +0100)
The parameter "d" holds the domain and is not modified by the function.
So constify it.
Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/include/asm-x86/p2m.h
patch
|
blob
|
history
diff --git
a/xen/include/asm-x86/p2m.h
b/xen/include/asm-x86/p2m.h
index 7e71bf075bf52015b7538aa95fea1aa13903aff5..596d744b6d54b253c32c3fa6b44895ad3d8fa632 100644
(file)
--- a/
xen/include/asm-x86/p2m.h
+++ b/
xen/include/asm-x86/p2m.h
@@
-506,7
+506,7
@@
static inline struct page_info *get_page_from_gfn(
}
/* General conversion function from mfn to gfn */
-static inline unsigned long mfn_to_gfn(struct domain *d, mfn_t mfn)
+static inline unsigned long mfn_to_gfn(
const
struct domain *d, mfn_t mfn)
{
if ( paging_mode_translate(d) )
return get_gpfn_from_mfn(mfn_x(mfn));