]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dma-buf: Change st-dma-fence.c to use kunit
authorJason Gunthorpe <jgg@nvidia.com>
Sun, 1 Mar 2026 18:57:54 +0000 (14:57 -0400)
committerChristian König <christian.koenig@amd.com>
Thu, 16 Apr 2026 10:34:00 +0000 (12:34 +0200)
commit9baa35a3993999764965e70be949984891572d2d
treea2bb9a836b991ea265f69fcd8e645bca6e1b2b19
parent15b9bde78baddc278aaa8fb99590871efe1b494a
dma-buf: Change st-dma-fence.c to use kunit

Modernize the open coded test framework by using kunit.

Add a num_online_cpus() check to test_race_signal_callback() as the
default kunit.py runs the VM with a single CPU and this test depends on
two truly parallel kthreads. Skip it instead of hanging.

Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/r/2-v1-0a349a394eff+14110-dmabuf_kunit_jgg@nvidia.com
drivers/dma-buf/Makefile
drivers/dma-buf/selftests.h
drivers/dma-buf/st-dma-fence.c