From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: dma-buf: Change st-dma-fence-chain.c to use kunit Date: Tue, 03 Mar 2026 13:50:32 +1000 Message-ID: In-Reply-To: <4-v1-0a349a394eff+14110-dmabuf_kunit_jgg@nvidia.com> References: <0-v1-0a349a394eff+14110-dmabuf_kunit_jgg@nvidia.com> <4-v1-0a349a394eff+14110-dmabuf_kunit_jgg@nvidia.com> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Patch Review Good conversion. The use of `suite_init`/`suite_exit` for `slab_fences` creation/destruction is correct and idiomatic: ```c static int dma_fence_chain_suite_init(struct kunit_suite *suite) { ... slab_fences = kmem_cache_create("dmabuf", sizeof(struct mock_fence), 0, SLAB_HWCACHE_ALIGN); if (!slab_fences) return -ENOMEM; return 0; } static void dma_fence_chain_suite_exit(struct kunit_suite *suite) { kmem_cache_destroy(slab_fences); } ``` This properly replaces the old pattern where `dma_fence_chain()` created the slab, ran tests, then destroyed it. No issues found in this patch. --- Generated by Claude Code Patch Reviewer