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/i915: Expose intel_memory_type_str()

Rename region_type_str() into intel_memory_type_str() and
expose it outside intel_memory_region.c. I'll have another
use for this in the BIOS FB takeover code.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250313140838.29742-3-ville.syrjala@linux.intel.com
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>

+3 -2
+2 -2
drivers/gpu/drm/i915/intel_memory_region.c
··· 227 227 return err; 228 228 } 229 229 230 - static const char *region_type_str(u16 type) 230 + const char *intel_memory_type_str(enum intel_memory_type type) 231 231 { 232 232 switch (type) { 233 233 case INTEL_MEMORY_SYSTEM: ··· 271 271 mem->instance = instance; 272 272 273 273 snprintf(mem->uabi_name, sizeof(mem->uabi_name), "%s%u", 274 - region_type_str(type), instance); 274 + intel_memory_type_str(type), instance); 275 275 276 276 mutex_init(&mem->objects.lock); 277 277 INIT_LIST_HEAD(&mem->objects.list);
+1
drivers/gpu/drm/i915/intel_memory_region.h
··· 109 109 struct intel_memory_region * 110 110 intel_memory_region_by_type(struct drm_i915_private *i915, 111 111 enum intel_memory_type mem_type); 112 + const char *intel_memory_type_str(enum intel_memory_type type); 112 113 113 114 __printf(2, 3) void 114 115 intel_memory_region_set_name(struct intel_memory_region *mem,