linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/exynos: use KMEM_CACHE() to create g2d_runqueue_node cache
@ 2024-02-26  2:22 Kunwu Chan
  0 siblings, 0 replies; only message in thread
From: Kunwu Chan @ 2024-02-26  2:22 UTC (permalink / raw)
  To: inki.dae, sw0312.kim, kyungmin.park, airlied, daniel,
	krzysztof.kozlowski, alim.akhtar
  Cc: dri-devel, linux-arm-kernel, linux-samsung-soc, linux-kernel, Kunwu Chan

Use the KMEM_CACHE() macro instead of kmem_cache_create() to simplify
the creation of SLAB caches when the default values are used.

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
---
 drivers/gpu/drm/exynos/exynos_drm_g2d.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exynos/exynos_drm_g2d.c
index f3138423612e..a5818ed6a6f7 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c
@@ -1456,8 +1456,7 @@ static int g2d_probe(struct platform_device *pdev)
 	if (!g2d)
 		return -ENOMEM;
 
-	g2d->runqueue_slab = kmem_cache_create("g2d_runqueue_slab",
-			sizeof(struct g2d_runqueue_node), 0, 0, NULL);
+	g2d->runqueue_slab = KMEM_CACHE(g2d_runqueue_node, 0);
 	if (!g2d->runqueue_slab)
 		return -ENOMEM;
 
-- 
2.39.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-26  2:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-26  2:22 [PATCH] drm/exynos: use KMEM_CACHE() to create g2d_runqueue_node cache Kunwu Chan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).