From: Julien Grall Date: Tue, 7 May 2019 15:14:46 +0000 (+0100) Subject: xen/x86: Constify the parameter "d" in mfn_to_gfn X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~2190 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b915f57a49bc12e9f5fb60ce604772b09777ff0d;p=xen.git xen/x86: Constify the parameter "d" in mfn_to_gfn The parameter "d" holds the domain and is not modified by the function. So constify it. Signed-off-by: Julien Grall Reviewed-by: Jan Beulich --- diff --git a/xen/include/asm-x86/p2m.h b/xen/include/asm-x86/p2m.h index 7e71bf075b..596d744b6d 100644 --- 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));