Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: Nirmoy Das <nirmoy.das@intel.com>
Link: https://lore.kernel.org/r/20230327175824.2967914-1-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

authored by

Matt Roper and committed by
Rodrigo Vivi
011d8fa3 e7dc1341

+3 -3
+3 -3
drivers/gpu/drm/xe/xe_pat.c
··· 32 32 #define TGL_PAT_WC REG_FIELD_PREP(TGL_MEM_TYPE_MASK, 1) 33 33 #define TGL_PAT_UC REG_FIELD_PREP(TGL_MEM_TYPE_MASK, 0) 34 34 35 - const u32 tgl_pat_table[] = { 35 + static const u32 tgl_pat_table[] = { 36 36 [0] = TGL_PAT_WB, 37 37 [1] = TGL_PAT_WC, 38 38 [2] = TGL_PAT_WT, ··· 43 43 [7] = TGL_PAT_WB, 44 44 }; 45 45 46 - const u32 pvc_pat_table[] = { 46 + static const u32 pvc_pat_table[] = { 47 47 [0] = TGL_PAT_UC, 48 48 [1] = TGL_PAT_WC, 49 49 [2] = TGL_PAT_WT, ··· 54 54 [7] = PVC_PAT_CLOS(2) | TGL_PAT_WB, 55 55 }; 56 56 57 - const u32 mtl_pat_table[] = { 57 + static const u32 mtl_pat_table[] = { 58 58 [0] = MTL_PAT_0_WB, 59 59 [1] = MTL_PAT_1_WT, 60 60 [2] = MTL_PAT_3_UC,