Commit 38bd13a0 authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Zhi Wang
Browse files

drm/i915/gvt: Constify gtt_type_table_entry



It is never modified, so make it const to allow the compiler to put it
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-9-rikard.falkeborn@gmail.com


Reviewed-by: default avatarZhi Wang <zhi.a.wang@intel.com>
parent b17639c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -185,7 +185,7 @@ struct gtt_type_table_entry {
		.pse_entry_type = pse_type, \
	}

static struct gtt_type_table_entry gtt_type_table[] = {
static const struct gtt_type_table_entry gtt_type_table[] = {
	GTT_TYPE_TABLE_ENTRY(GTT_TYPE_PPGTT_ROOT_L4_ENTRY,
			GTT_TYPE_PPGTT_ROOT_L4_ENTRY,
			GTT_TYPE_INVALID,