Commit 8c8e1f69 authored by Aishwarya Ramakrishnan's avatar Aishwarya Ramakrishnan Committed by Alex Deucher

drm/amdkfd: Fix boolreturn.cocci warnings

Return statements in functions returning bool should use
true/false instead of 1/0.

drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c:40:9-10:
WARNING: return of 0/1 in function 'event_interrupt_isr_v9' with return type bool

Generated by: scripts/coccinelle/misc/boolreturn.cocci
Signed-off-by: default avatarAishwarya Ramakrishnan <aishwaryarj100@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f99d8762
...@@ -37,7 +37,7 @@ static bool event_interrupt_isr_v9(struct kfd_dev *dev, ...@@ -37,7 +37,7 @@ static bool event_interrupt_isr_v9(struct kfd_dev *dev,
vmid = SOC15_VMID_FROM_IH_ENTRY(ih_ring_entry); vmid = SOC15_VMID_FROM_IH_ENTRY(ih_ring_entry);
if (vmid < dev->vm_info.first_vmid_kfd || if (vmid < dev->vm_info.first_vmid_kfd ||
vmid > dev->vm_info.last_vmid_kfd) vmid > dev->vm_info.last_vmid_kfd)
return 0; return false;
source_id = SOC15_SOURCE_ID_FROM_IH_ENTRY(ih_ring_entry); source_id = SOC15_SOURCE_ID_FROM_IH_ENTRY(ih_ring_entry);
client_id = SOC15_CLIENT_ID_FROM_IH_ENTRY(ih_ring_entry); client_id = SOC15_CLIENT_ID_FROM_IH_ENTRY(ih_ring_entry);
...@@ -69,7 +69,7 @@ static bool event_interrupt_isr_v9(struct kfd_dev *dev, ...@@ -69,7 +69,7 @@ static bool event_interrupt_isr_v9(struct kfd_dev *dev,
/* If there is no valid PASID, it's likely a bug */ /* If there is no valid PASID, it's likely a bug */
if (WARN_ONCE(pasid == 0, "Bug: No PASID in KFD interrupt")) if (WARN_ONCE(pasid == 0, "Bug: No PASID in KFD interrupt"))
return 0; return false;
/* Interrupt types we care about: various signals and faults. /* Interrupt types we care about: various signals and faults.
* They will be forwarded to a work queue (see below). * They will be forwarded to a work queue (see below).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment