amdkfd: let profile_lock_device return an int other than uint32
Subsystems (3)
PATCH 1/1 amdkfd: let profile_lock_device return an int other than uint32
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 <[email protected]>
--- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +1 -1
@@ -3329,7 +3329,7 @@ static int kfd_ioctl_create_process(struct file *filep, struct kfd_process *p, vreturn 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;
Signature · 1 line
2.53.0
Quoted 5 lines · Zhu Lingshan
profile_lock_device()may return negive error code, so the type of the return value should be int, not uint32Signed-off-by Zhu Lingshan <[email protected]>
Reviewed-by Felix Kuehling <[email protected]>
Quoted 17 lines
--- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +1
-1@@ -3329,7 +3329,7 @@ static int kfd_ioctl_create_process(struct file *filep, struct kfd_process *p, vreturn 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;