summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
diff options
context:
space:
mode:
authorKent Russell2017-08-16 05:00:04 +0200
committerOded Gabbay2017-08-16 05:00:04 +0200
commit8eabaf54cfb34d185b7c9684bc891397d757d15e (patch)
tree9565337fe0fca35e2932c610d2c3483fbeaea75b /drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
parentdrm/amdgpu: Remove hard-coded assumptions about compute pipes (diff)
downloadkernel-qcow2-linux-8eabaf54cfb34d185b7c9684bc891397d757d15e.tar.gz
kernel-qcow2-linux-8eabaf54cfb34d185b7c9684bc891397d757d15e.tar.xz
kernel-qcow2-linux-8eabaf54cfb34d185b7c9684bc891397d757d15e.zip
drm/amdkfd: Clean up KFD style errors and warnings v2
Using checkpatch.pl -f <file> showed a number of style issues. This patch addresses as many of them as possible. Some long lines have been left for readability, but attempts to minimize them have been made. v2: Broke long lines in gfx_v7 get_fw_version Signed-off-by: Kent Russell <kent.russell@amd.com> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_chardev.c')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_chardev.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
index 6316aad43a73..2603b7ce50a2 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
@@ -782,7 +782,8 @@ static int kfd_ioctl_get_process_apertures(struct file *filp,
"scratch_limit %llX\n", pdd->scratch_limit);
args->num_of_nodes++;
- } while ((pdd = kfd_get_next_process_device_data(p, pdd)) != NULL &&
+ } while ((pdd = kfd_get_next_process_device_data(p, pdd)) !=
+ NULL &&
(args->num_of_nodes < NUM_OF_SUPPORTED_GPUS));
}
@@ -848,7 +849,8 @@ static int kfd_ioctl_wait_events(struct file *filp, struct kfd_process *p,
}
#define AMDKFD_IOCTL_DEF(ioctl, _func, _flags) \
- [_IOC_NR(ioctl)] = {.cmd = ioctl, .func = _func, .flags = _flags, .cmd_drv = 0, .name = #ioctl}
+ [_IOC_NR(ioctl)] = {.cmd = ioctl, .func = _func, .flags = _flags, \
+ .cmd_drv = 0, .name = #ioctl}
/** Ioctl table */
static const struct amdkfd_ioctl_desc amdkfd_ioctls[] = {