Skip to contentSkip to conversation

drm/xe: replace kmem_cache_create() with KMEM_CACHE()

PATCH New Salah Triki 2 participants 2 messages Jun 11, 2025 – Jun 13, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/xe: replace kmem_cache_create() with KMEM_CACHE()

Use KMEM_CACHE() instead of kmem_cache_create() to simplify the creation of SLAB cache.

---
 drivers/gpu/drm/xe/xe_hw_fence.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_hw_fence.c +2 -3
index 0b4f12be3692..b54f758a905e 100644
@@ -20,9 +20,8 @@ static struct kmem_cache *xe_hw_fence_slab;
 
 int __init xe_hw_fence_module_init(void)
 {
-	xe_hw_fence_slab = kmem_cache_create("xe_hw_fence",
-					     sizeof(struct xe_hw_fence), 0,
-					     SLAB_HWCACHE_ALIGN, NULL);
+	xe_hw_fence_slab = KMEM_CACHE(xe_hw_fence, SLAB_HWCACHE_ALIGN);
+
 	if (!xe_hw_fence_slab)
 		return -ENOMEM;
 
Signature · 1 line
2.43.0
#1 lore raw

✗ LGCI.VerificationFailed: failure for drm/xe: replace kmem_cache_create() with KMEM_CACHE()

== Series Details ==

== Series Details ==

Series: drm/xe: replace kmem_cache_create() with KMEM_CACHE()
URL : https://patchwork.freedesktop.org/series/150231/
State : failure

== Summary ==

Address '[email protected]' is not on the allowlist, which prevents CI from being triggered for this patch. If you want Intel GFX CI to accept this address, please contact the script maintainers at [email protected]. Exception occurred during validation, bailing out!