Commit 5512445c authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Zhi Wang

drm/i915/gvt: Constify intel_gvt_gtt_pte_ops

These are never modified, so make them const to allow the compiler to
put them in read-only memory.
Signed-off-by: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: default avatarZhi Wang <zhi.a.wang@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20211204105527.15741-3-rikard.falkeborn@gmail.comReviewed-by: default avatarZhi Wang <zhi.a.wang@intel.com>
parent c41aadd2
This diff is collapsed.
......@@ -91,7 +91,7 @@ struct intel_gvt_gtt_gma_ops {
};
struct intel_gvt_gtt {
struct intel_gvt_gtt_pte_ops *pte_ops;
const struct intel_gvt_gtt_pte_ops *pte_ops;
const struct intel_gvt_gtt_gma_ops *gma_ops;
int (*mm_alloc_page_table)(struct intel_vgpu_mm *mm);
void (*mm_free_page_table)(struct intel_vgpu_mm *mm);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment