Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

amdkfd: remove test_kq

This commit removes test_kq() function becuse it has been
marked as unused since 2014 and no other functions calls it.

Signed-off-by: Zhu Lingshan <lingshan.zhu@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Zhu Lingshan and committed by
Alex Deucher
2a667e26 b4f1e6a2

-31
-31
drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c
··· 327 327 kq_uninitialize(kq); 328 328 kfree(kq); 329 329 } 330 - 331 - /* FIXME: Can this test be removed? */ 332 - static __attribute__((unused)) void test_kq(struct kfd_node *dev) 333 - { 334 - struct kernel_queue *kq; 335 - uint32_t *buffer, i; 336 - int retval; 337 - 338 - dev_err(dev->adev->dev, "Starting kernel queue test\n"); 339 - 340 - kq = kernel_queue_init(dev, KFD_QUEUE_TYPE_HIQ); 341 - if (unlikely(!kq)) { 342 - dev_err(dev->adev->dev, " Failed to initialize HIQ\n"); 343 - dev_err(dev->adev->dev, "Kernel queue test failed\n"); 344 - return; 345 - } 346 - 347 - retval = kq_acquire_packet_buffer(kq, 5, &buffer); 348 - if (unlikely(retval != 0)) { 349 - dev_err(dev->adev->dev, " Failed to acquire packet buffer\n"); 350 - dev_err(dev->adev->dev, "Kernel queue test failed\n"); 351 - return; 352 - } 353 - for (i = 0; i < 5; i++) 354 - buffer[i] = kq->nop_packet; 355 - kq_submit_packet(kq); 356 - 357 - dev_err(dev->adev->dev, "Ending kernel queue test\n"); 358 - } 359 - 360 -