Commit e24ece08 authored by Jani Nikula's avatar Jani Nikula Committed by Chris Wilson

drm/i915/region: make intel_region_map static

There are no users outside of intel_memory_region.c.
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20210112170429.27619-1-jani.nikula@intel.com
parent 49b20dbf
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#define REGION_MAP(type, inst) \ #define REGION_MAP(type, inst) \
BIT((type) + INTEL_MEMORY_TYPE_SHIFT) | BIT(inst) BIT((type) + INTEL_MEMORY_TYPE_SHIFT) | BIT(inst)
const u32 intel_region_map[] = { static const u32 intel_region_map[] = {
[INTEL_REGION_SMEM] = REGION_MAP(INTEL_MEMORY_SYSTEM, 0), [INTEL_REGION_SMEM] = REGION_MAP(INTEL_MEMORY_SYSTEM, 0),
[INTEL_REGION_LMEM] = REGION_MAP(INTEL_MEMORY_LOCAL, 0), [INTEL_REGION_LMEM] = REGION_MAP(INTEL_MEMORY_LOCAL, 0),
[INTEL_REGION_STOLEN] = REGION_MAP(INTEL_MEMORY_STOLEN, 0), [INTEL_REGION_STOLEN] = REGION_MAP(INTEL_MEMORY_STOLEN, 0),
......
...@@ -51,11 +51,6 @@ enum intel_region_id { ...@@ -51,11 +51,6 @@ enum intel_region_id {
for (id = 0; id < ARRAY_SIZE((i915)->mm.regions); id++) \ for (id = 0; id < ARRAY_SIZE((i915)->mm.regions); id++) \
for_each_if((mr) = (i915)->mm.regions[id]) for_each_if((mr) = (i915)->mm.regions[id])
/**
* Memory regions encoded as type | instance
*/
extern const u32 intel_region_map[];
struct intel_memory_region_ops { struct intel_memory_region_ops {
unsigned int flags; unsigned int flags;
......
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