From: Kunwu Chan <chentao@kylinos.cn> To: inki.dae@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, airlied@gmail.com, daniel@ffwll.ch, krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Kunwu Chan <chentao@kylinos.cn> Subject: [PATCH] drm/exynos: use KMEM_CACHE() to create g2d_runqueue_node cache Date: Mon, 26 Feb 2024 10:22:51 +0800 [thread overview] Message-ID: <20240226022251.1781070-1-chentao@kylinos.cn> (raw) 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
WARNING: multiple messages have this Message-ID (diff)
From: Kunwu Chan <chentao@kylinos.cn> To: inki.dae@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, airlied@gmail.com, daniel@ffwll.ch, krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Kunwu Chan <chentao@kylinos.cn> Subject: [PATCH] drm/exynos: use KMEM_CACHE() to create g2d_runqueue_node cache Date: Mon, 26 Feb 2024 10:22:51 +0800 [thread overview] Message-ID: <20240226022251.1781070-1-chentao@kylinos.cn> (raw) 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2024-02-26 2:55 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-02-26 2:22 Kunwu Chan [this message] 2024-02-26 2:22 ` [PATCH] drm/exynos: use KMEM_CACHE() to create g2d_runqueue_node cache Kunwu Chan
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20240226022251.1781070-1-chentao@kylinos.cn \ --to=chentao@kylinos.cn \ --cc=airlied@gmail.com \ --cc=alim.akhtar@samsung.com \ --cc=daniel@ffwll.ch \ --cc=dri-devel@lists.freedesktop.org \ --cc=inki.dae@samsung.com \ --cc=krzysztof.kozlowski@linaro.org \ --cc=kyungmin.park@samsung.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-samsung-soc@vger.kernel.org \ --cc=sw0312.kim@samsung.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.