Commit 011d8fa3 authored by Matt Roper's avatar Matt Roper Committed by Rodrigo Vivi

drm/xe/pat: Define PAT tables as static

The tables are only used within this file; there's no reason for them
not to be static.
Reviewed-by: default avatarNirmoy Das <nirmoy.das@intel.com>
Link: https://lore.kernel.org/r/20230327175824.2967914-1-matthew.d.roper@intel.comSigned-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent e7dc1341
......@@ -32,7 +32,7 @@
#define TGL_PAT_WC REG_FIELD_PREP(TGL_MEM_TYPE_MASK, 1)
#define TGL_PAT_UC REG_FIELD_PREP(TGL_MEM_TYPE_MASK, 0)
const u32 tgl_pat_table[] = {
static const u32 tgl_pat_table[] = {
[0] = TGL_PAT_WB,
[1] = TGL_PAT_WC,
[2] = TGL_PAT_WT,
......@@ -43,7 +43,7 @@ const u32 tgl_pat_table[] = {
[7] = TGL_PAT_WB,
};
const u32 pvc_pat_table[] = {
static const u32 pvc_pat_table[] = {
[0] = TGL_PAT_UC,
[1] = TGL_PAT_WC,
[2] = TGL_PAT_WT,
......@@ -54,7 +54,7 @@ const u32 pvc_pat_table[] = {
[7] = PVC_PAT_CLOS(2) | TGL_PAT_WB,
};
const u32 mtl_pat_table[] = {
static const u32 mtl_pat_table[] = {
[0] = MTL_PAT_0_WB,
[1] = MTL_PAT_1_WT,
[2] = MTL_PAT_3_UC,
......
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