diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2021-12-04 13:55:20 +0300 |
---|---|---|
committer | Zhi Wang <zhi.a.wang@intel.com> | 2022-01-12 10:52:37 +0300 |
commit | 5512445c9b64a2fd78f37c41796745d72c02e9a3 (patch) | |
tree | e206cab699f76cd4e5a7a0eeff93bba9dc5c590d /drivers/gpu/drm/i915/gvt/gtt.h | |
parent | c41aadd26496db9c21deb612445801f3e44ee8b2 (diff) | |
download | linux-5512445c9b64a2fd78f37c41796745d72c02e9a3.tar.xz |
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: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20211204105527.15741-3-rikard.falkeborn@gmail.com
Reviewed-by: Zhi Wang <zhi.a.wang@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/gtt.h')
-rw-r--r-- | drivers/gpu/drm/i915/gvt/gtt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gvt/gtt.h b/drivers/gpu/drm/i915/gvt/gtt.h index d0d598322404..a3b0f59ec8bd 100644 --- a/drivers/gpu/drm/i915/gvt/gtt.h +++ b/drivers/gpu/drm/i915/gvt/gtt.h @@ -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); |