amdkfd: let profile_lock_device return an int other than uint32
authorZhu Lingshan <lingshan.zhu@amd.com>
Fri, 14 Aug 2026 06:51:32 +0000 (14:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Aug 2026 14:12:01 +0000 (10:12 -0400)
profile_lock_device() may return negive error code,
so the type of the return value should be int,
not uint32

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>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c

index 309510e..6fd1848 100644 (file)
@@ -3329,7 +3329,7 @@ static int kfd_ioctl_create_process(struct file *filep, struct kfd_process *p, v
        return 0;
 }
 
-static inline uint32_t profile_lock_device(struct kfd_process *p,
+static inline int profile_lock_device(struct kfd_process *p,
                                           uint32_t gpu_id, uint32_t op)
 {
        struct kfd_process_device *pdd;